-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
- create file type-overrides.d.ts in your src project
declare module 'date-template' {
type Replaced = Record<string, { value: string | number; key: RegExp | string }>
declare const template: (
format: string,
date: number | Date | string,
middleware?: (replaced: Replaced) => Replaced
) => string
export = template
}- in addition, you can specify the path to the override file in tsconfig.json typeRoots
{
"compilerOptions": {
"typeRoots": [
"src/type-overrides.d.ts",
"node_modules/@types"
]
}
}