UNPKG

617 BTypeScriptView Raw
1export type NullableList = 'items' | 'itemsAndList';
2type NonNullableBaseType<T = any> = {
3 /**
4 * Determines whether field/argument/etc is nullable.
5 */
6 nullable?: false | NullableList;
7 /**
8 * Default value.
9 */
10 defaultValue?: T;
11};
12type NullableBaseType<T = any> = {
13 /**
14 * Determines whether field/argument/etc is nullable.
15 */
16 nullable: true;
17 /**
18 * Default value.
19 */
20 defaultValue?: T | null;
21};
22export type BaseTypeOptions<T = any> = NonNullableBaseType<T> | NullableBaseType<T>;
23export {};
24//# sourceMappingURL=base-type-options.interface.d.ts.map
\No newline at end of file