UNPKG

fully-optional

Version:
5 lines 283 B
import { Optional } from './types'; export declare function withDefault<T, R>(value: Optional<T>, defaultValue: R): T | R; export declare function withDefault<T, R>(defaultValue: R): (value: Optional<T>) => T | R; export default withDefault; //# sourceMappingURL=withDefault.d.ts.map