@expo/schemer
Version:
Centralized scheme validation library for Expo
6 lines (5 loc) • 386 B
TypeScript
export declare const fieldPathToSchemaPath: (fieldPath: string) => string;
export declare const schemaPointerToFieldPath: (jsonPointer: string) => string;
export declare const fieldPathToSchema: (schema: object, fieldPath: string) => any;
export declare function pathToSegments(path: string | string[]): string[];
export declare function get(object: any, path: string | string[]): any;