1
0
mirror of https://github.com/flarum/core.git synced 2025-08-22 08:04:37 +02:00

chore: convert to TypeScript

This commit is contained in:
Alexander Skvortsov
2022-01-27 15:57:07 -05:00
parent 2a31ea1c15
commit f3d0bdce47
5 changed files with 594 additions and 9 deletions

View File

@@ -0,0 +1,16 @@
{
// Use Flarum's tsconfig as a starting point
"extends": "flarum-tsconfig",
// This will match all .ts, .tsx, .d.ts, .js, .jsx files in your `src` folder
// and also tells your Typescript server to read core's global typings for
// access to `dayjs` and `$` in the global namespace.
"include": ["src/**/*", "../vendor/flarum/core/js/dist-typings/@types/**/*", "@types/**/*"],
"compilerOptions": {
// This will output typings to `dist-typings`
"declarationDir": "./dist-typings",
"baseUrl": ".",
"paths": {
"flarum/*": ["../vendor/flarum/core/js/dist-typings/*"]
}
}
}