eslint-plugin-logical-properties
Version:
27 lines • 1.38 kB
TypeScript
export declare const pathToSegments: (path: string) => string[];
export declare const segmentsToPath: (segments: string[]) => string;
export declare const isWildcard: (input: string) => input is "*";
export declare const segmentsIsEmpty: (input: string[]) => boolean;
export declare const packer: {
unpack: (input: string) => any;
pack: (input: unknown) => string;
};
export declare const generateObjectStringFromPath: (input: string | string[], insert: string) => string;
export declare const generateObjectStringsFromPaths: (input: string[] | readonly string[], insert: string) => string[];
export type ObjectStringTestCaseDeclaration = {
testName: string;
functionName: string;
};
export declare const generateObjectStringTestCaseDeclaration: ({ testName, functionName }: ObjectStringTestCaseDeclaration, objectString: string) => string;
export type ObjectStringTestCaseOptions = (ObjectStringTestCaseDeclaration & {
resolvers: string[] | readonly string[];
});
export type ObjectStringTestCase = {
input: Record<string, unknown> | string;
output?: Record<string, unknown> | string;
};
export declare const generateObjectStringTestCases: ({ resolvers, ...declarationOptions }: ObjectStringTestCaseOptions, { input, output, }: ObjectStringTestCase) => {
code: string;
output?: string;
}[];
//# sourceMappingURL=propertyTraverse.utils.d.ts.map