Skip to main content

FlatObjectParams

flatObject 함수의 매개변수 타입입니다.

Signature

type FlatObjectParams<T extends RecursiveObj<any>, V = T extends RecursiveObj<infer U> ? U : never> = {
isValueType?: (value: T | V) => boolean;
formatKey?: (parentKey: string | null, currentKey: string) => string;
formatValue?: (data: {
key: string;
value: V;
}) => any;
};

References

RecursiveObj