UNPKG

874 BTypeScriptView Raw
1import { NgbDateAdapter } from './ngb-date-adapter';
2import { NgbDateStruct } from '../ngb-date-struct';
3import * as i0 from "@angular/core";
4/**
5 * [`NgbDateAdapter`](#/components/datepicker/api#NgbDateAdapter) implementation that uses
6 * native javascript dates as a user date model.
7 */
8export declare class NgbDateNativeAdapter extends NgbDateAdapter<Date> {
9 /**
10 * Converts a native `Date` to a `NgbDateStruct`.
11 */
12 fromModel(date: Date | null): NgbDateStruct | null;
13 /**
14 * Converts a `NgbDateStruct` to a native `Date`.
15 */
16 toModel(date: NgbDateStruct | null): Date | null;
17 protected _fromNativeDate(date: Date): NgbDateStruct;
18 protected _toNativeDate(date: NgbDateStruct): Date;
19 static ɵfac: i0.ɵɵFactoryDeclaration<NgbDateNativeAdapter, never>;
20 static ɵprov: i0.ɵɵInjectableDeclaration<NgbDateNativeAdapter>;
21}