Files
JsonTool/json-class-interface/dist/utils.d.ts
2024-09-27 01:15:47 +08:00

14 lines
912 B
TypeScript

import { ToClassOptions } from "./typing";
export declare const isNull: (val: any) => boolean;
export declare const isUndefined: (val: any) => boolean;
export declare const isNullOrUndefined: (val: any) => boolean;
export declare const isArray: (val: any) => boolean;
export declare const isObject: (val: any) => boolean;
export declare const isObjectOrArray: (val: any) => boolean;
export declare const firstLetterCap: (val: string) => string;
export declare const setDefaultNull: (options: ToClassOptions) => string;
export declare const setDefaultNeedPropertyValue: (options: ToClassOptions, key: string) => string;
export declare const setInterfaceModel: (options: ToClassOptions) => "export interface" | "export class";
export declare const setKeyNotNull: (options: ToClassOptions, key: string) => string;
export declare const stripIndent: (template: TemplateStringsArray, ...expressions: any[]) => string;