mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
feat(): ensure types are used from @stencil/core
This commit is contained in:
39
packages/core-hn-demo/tsconfig.json
Normal file
39
packages/core-hn-demo/tsconfig.json
Normal file
@@ -0,0 +1,39 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"allowJs": true,
|
||||
"alwaysStrict": true,
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"allowUnreachableCode": false,
|
||||
"declaration": false,
|
||||
"experimentalDecorators": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"lib": [
|
||||
"dom",
|
||||
"es2015"
|
||||
],
|
||||
"moduleResolution": "node",
|
||||
"module": "es2015",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"noImplicitReturns": true,
|
||||
"noUnusedLocals": true,
|
||||
"noUnusedParameters": true,
|
||||
"outDir": "dist",
|
||||
"pretty": true,
|
||||
"removeComments": false,
|
||||
"sourceMap": false,
|
||||
"types": [
|
||||
"node"
|
||||
],
|
||||
"jsx": "react",
|
||||
"jsxFactory": "h"
|
||||
},
|
||||
"include": [
|
||||
"**/*.ts",
|
||||
"**/*.tsx",
|
||||
"types/jsx.d.ts"
|
||||
],
|
||||
"exclude": [
|
||||
"node_modules"
|
||||
]
|
||||
}
|
||||
7
packages/core-hn-demo/types/jsx.d.ts
vendored
Normal file
7
packages/core-hn-demo/types/jsx.d.ts
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
declare namespace JSX {
|
||||
interface Element {
|
||||
}
|
||||
interface IntrinsicElements {
|
||||
[elemName: string]: any;
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,4 @@
|
||||
import { Component, Prop, h, State } from '@stencil/core';
|
||||
import { VNodeData } from '../../utils/interfaces';
|
||||
import { Component, Prop, State, VNodeData } from '@stencil/core';
|
||||
|
||||
@Component({
|
||||
tag: 'fiber-dot'
|
||||
|
||||
39
packages/fiber-demo/tsconfig.json
Normal file
39
packages/fiber-demo/tsconfig.json
Normal file
@@ -0,0 +1,39 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"allowJs": true,
|
||||
"alwaysStrict": true,
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"allowUnreachableCode": false,
|
||||
"declaration": false,
|
||||
"experimentalDecorators": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"lib": [
|
||||
"dom",
|
||||
"es2015"
|
||||
],
|
||||
"moduleResolution": "node",
|
||||
"module": "es2015",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"noImplicitReturns": true,
|
||||
"noUnusedLocals": true,
|
||||
"noUnusedParameters": true,
|
||||
"outDir": "dist",
|
||||
"pretty": true,
|
||||
"removeComments": false,
|
||||
"sourceMap": false,
|
||||
"types": [
|
||||
"node"
|
||||
],
|
||||
"jsx": "react",
|
||||
"jsxFactory": "h"
|
||||
},
|
||||
"include": [
|
||||
"**/*.ts",
|
||||
"**/*.tsx",
|
||||
"types/jsx.d.ts"
|
||||
],
|
||||
"exclude": [
|
||||
"node_modules"
|
||||
]
|
||||
}
|
||||
7
packages/fiber-demo/types/jsx.d.ts
vendored
Normal file
7
packages/fiber-demo/types/jsx.d.ts
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
declare namespace JSX {
|
||||
interface Element {
|
||||
}
|
||||
interface IntrinsicElements {
|
||||
[elemName: string]: any;
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
import { CssClassObject } from '../util/interfaces';
|
||||
import { CssClassObject } from '@stencil/core';
|
||||
|
||||
export function createThemedClasses(mode: string, color: string, classList: string): CssClassObject {
|
||||
let allClassObj: CssClassObject = {};
|
||||
|
||||
39
packages/ionic/tsconfig.json
Normal file
39
packages/ionic/tsconfig.json
Normal file
@@ -0,0 +1,39 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"allowJs": true,
|
||||
"alwaysStrict": true,
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"allowUnreachableCode": false,
|
||||
"declaration": false,
|
||||
"experimentalDecorators": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"lib": [
|
||||
"dom",
|
||||
"es2015"
|
||||
],
|
||||
"moduleResolution": "node",
|
||||
"module": "es2015",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"noImplicitReturns": true,
|
||||
"noUnusedLocals": true,
|
||||
"noUnusedParameters": true,
|
||||
"outDir": "dist",
|
||||
"pretty": true,
|
||||
"removeComments": false,
|
||||
"sourceMap": false,
|
||||
"types": [
|
||||
"node"
|
||||
],
|
||||
"jsx": "react",
|
||||
"jsxFactory": "h"
|
||||
},
|
||||
"include": [
|
||||
"**/*.ts",
|
||||
"**/*.tsx",
|
||||
"types/jsx.d.ts"
|
||||
],
|
||||
"exclude": [
|
||||
"node_modules"
|
||||
]
|
||||
}
|
||||
7
packages/ionic/types/jsx.d.ts
vendored
Normal file
7
packages/ionic/types/jsx.d.ts
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
declare namespace JSX {
|
||||
interface Element {
|
||||
}
|
||||
interface IntrinsicElements {
|
||||
[elemName: string]: any;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user