adminjs
Version:
Admin panel for apps written in node.js
47 lines (43 loc) • 965 B
text/typescript
/**
* Type of flatten params.
*
* @memberof module:flat
* @alias FlattenParams
*/
export type FlattenParams = {
[key: string]: FlattenValue;
}
export type FlattenValue = string
| boolean
| number
| Date
| null
| []
| Record<string, unknown>
| File
/**
* @memberof module:flat
* @alias GetOptions
*/
export type GetOptions = {
/**
* Indicates if all the "less related" siblings should be included. This option takes care of
* fetching elements in nested arrays. Let's say you have keys: `nested.0.array.0` and `
* `nested.1.array.0.`. With `includeAllSiblings` you will fetch all nested.N.array elements.
*/
includeAllSiblings?: boolean;
}
/**
* Available types for flatten values. This is an Union of types:
* - `string`
* - `boolean`
* - `number`
* - `Date`
* - `null`
* - `[]` (empty array)
* - `{}` (empty object)
* - `File`
* @memberof module:flat
* @alias FlattenValue
* @typedef {Union} FlattenValue
*/