1
0
mirror of https://github.com/flarum/core.git synced 2025-08-05 07:57:46 +02:00

TS config / shims: Fix indentation / whitespace

This commit is contained in:
Franz Liedke
2020-09-18 14:17:20 +02:00
parent b251ff0469
commit e10ebf0489
3 changed files with 25 additions and 26 deletions

4
js/shims.d.ts vendored
View File

@@ -3,5 +3,5 @@ export * from './webpack-config-shims';
import Application from './src/common/Application'; import Application from './src/common/Application';
declare global { declare global {
const app: Application; const app: Application;
} }

View File

@@ -5,13 +5,13 @@ import * as _dayjs from 'dayjs';
import * as _$ from 'jquery'; import * as _$ from 'jquery';
interface m extends Mithril.Static { interface m extends Mithril.Static {
prop: typeof Stream; prop: typeof Stream;
} }
declare global { declare global {
const $: typeof _$; const $: typeof _$;
const m: m; const m: m;
const dayjs: typeof _dayjs; const dayjs: typeof _dayjs;
} }
export as namespace Mithril; export as namespace Mithril;

View File

@@ -1,22 +1,21 @@
{ {
"include": ["src/**/*.ts"], "include": ["src/**/*.ts"],
"files": ["shims.d.ts"], "files": ["shims.d.ts"],
"compilerOptions": { "compilerOptions": {
"allowUmdGlobalAccess": true, "allowUmdGlobalAccess": true,
"outDir": "dist", "outDir": "dist",
"sourceMap": true, "sourceMap": true,
"strict": true, "strict": true,
"noImplicitReturns": false, "noImplicitReturns": false,
"noImplicitAny": false, "noImplicitAny": false,
"module": "es2015", "module": "es2015",
"emitDecoratorMetadata": true, "emitDecoratorMetadata": true,
"experimentalDecorators": true, "experimentalDecorators": true,
"esModuleInterop": true, "esModuleInterop": true,
"moduleResolution": "node", "moduleResolution": "node",
"target": "es6", "target": "es6",
"jsx": "preserve", "jsx": "preserve",
"lib": ["es2015", "es2017", "dom"], "lib": ["es2015", "es2017", "dom"],
"allowSyntheticDefaultImports": true "allowSyntheticDefaultImports": true
} }
} }