tspace-mysql
Version:
Tspace MySQL is a promise-based ORM for Node.js, designed with modern TypeScript and providing type safety for schema databases.
29 lines (28 loc) • 855 B
TypeScript
declare class Package {
static import(name: string): any;
static get fs(): {
existsSync: (v: string) => any;
writeFileSync: (path: string, data: string, options?: Record<string, any>) => any;
readdirSync: (path: string, options?: {
withFileTypes: boolean;
}) => any[];
readFileSync: (path: string, encoding: string) => any;
};
static get path(): {
join: (...paths: string[]) => any;
resolve: (...paths: string[]) => any;
};
static get dotenv(): {
config: (options?: Record<string, any>) => any;
};
static get redis(): {
createClient: ({ url, socket }: {
url: string;
socket?: {
reconnectStrategy: () => boolean;
};
}) => any;
};
}
export { Package };
export default Package;