@sanity/migrate
Version:
Tooling for running data migrations on Sanity.io projects
7 lines • 408 B
TypeScript
export type JSONParser<Type> = (line: string) => Type;
export interface JSONOptions<Type> {
parse?: JSONParser<Type>;
}
export declare function parseJSON<Type>(it: AsyncIterableIterator<string>, { parse }?: JSONOptions<Type>): AsyncIterableIterator<Type>;
export declare function stringifyJSON(it: AsyncIterableIterator<unknown>): AsyncGenerator<string, void, unknown>;
//# sourceMappingURL=json.d.ts.map