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:
4
js/shims.d.ts
vendored
4
js/shims.d.ts
vendored
@@ -3,5 +3,5 @@ export * from './webpack-config-shims';
|
||||
import Application from './src/common/Application';
|
||||
|
||||
declare global {
|
||||
const app: Application;
|
||||
}
|
||||
const app: Application;
|
||||
}
|
||||
|
8
js/webpack-config-shims.d.ts
vendored
8
js/webpack-config-shims.d.ts
vendored
@@ -5,13 +5,13 @@ import * as _dayjs from 'dayjs';
|
||||
import * as _$ from 'jquery';
|
||||
|
||||
interface m extends Mithril.Static {
|
||||
prop: typeof Stream;
|
||||
prop: typeof Stream;
|
||||
}
|
||||
|
||||
declare global {
|
||||
const $: typeof _$;
|
||||
const m: m;
|
||||
const dayjs: typeof _dayjs;
|
||||
const $: typeof _$;
|
||||
const m: m;
|
||||
const dayjs: typeof _dayjs;
|
||||
}
|
||||
|
||||
export as namespace Mithril;
|
||||
|
@@ -1,22 +1,21 @@
|
||||
{
|
||||
"include": ["src/**/*.ts"],
|
||||
"files": ["shims.d.ts"],
|
||||
"compilerOptions": {
|
||||
"allowUmdGlobalAccess": true,
|
||||
"outDir": "dist",
|
||||
"sourceMap": true,
|
||||
"strict": true,
|
||||
"noImplicitReturns": false,
|
||||
"noImplicitAny": false,
|
||||
"module": "es2015",
|
||||
"emitDecoratorMetadata": true,
|
||||
"experimentalDecorators": true,
|
||||
"esModuleInterop": true,
|
||||
"moduleResolution": "node",
|
||||
"target": "es6",
|
||||
"jsx": "preserve",
|
||||
"lib": ["es2015", "es2017", "dom"],
|
||||
"allowSyntheticDefaultImports": true
|
||||
}
|
||||
"include": ["src/**/*.ts"],
|
||||
"files": ["shims.d.ts"],
|
||||
"compilerOptions": {
|
||||
"allowUmdGlobalAccess": true,
|
||||
"outDir": "dist",
|
||||
"sourceMap": true,
|
||||
"strict": true,
|
||||
"noImplicitReturns": false,
|
||||
"noImplicitAny": false,
|
||||
"module": "es2015",
|
||||
"emitDecoratorMetadata": true,
|
||||
"experimentalDecorators": true,
|
||||
"esModuleInterop": true,
|
||||
"moduleResolution": "node",
|
||||
"target": "es6",
|
||||
"jsx": "preserve",
|
||||
"lib": ["es2015", "es2017", "dom"],
|
||||
"allowSyntheticDefaultImports": true
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user