UNPKG

rapiq

Version:

A tiny library which provides utility types/functions for request and response query handling.

5 lines 470 B
import type { NestedKeys, NestedResourceKeys, ObjectLiteral } from '../../../types'; import type { ParseAllowedOption } from '../../type'; export declare function flattenParseAllowedOption<T>(input?: ParseAllowedOption<T>): string[]; export declare function isPathCoveredByParseAllowedOption<T extends ObjectLiteral>(input: ParseAllowedOption<T> | NestedKeys<T>[] | NestedResourceKeys<T>[], path: string | string[]): boolean; //# sourceMappingURL=allowed-option.d.ts.map