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';
|
import Application from './src/common/Application';
|
||||||
|
|
||||||
declare global {
|
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';
|
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;
|
||||||
|
@@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue
Block a user