amis-rpc-design/node_modules/@reduxjs/toolkit/dist/query/utils/flatten.d.ts
2023-10-07 19:42:30 +08:00

7 lines
255 B
TypeScript

/**
* Alternative to `Array.flat(1)`
* @param arr An array like [1,2,3,[1,2]]
* @link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/flat
*/
export declare const flatten: (arr: readonly any[]) => never[];