feat(): ensure types are used from @stencil/core

This commit is contained in:
Josh Thomas
2017-06-22 13:01:37 -05:00
parent 984bc7025f
commit 9693be4244
8 changed files with 140 additions and 3 deletions

View 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
View File

@@ -0,0 +1,7 @@
declare namespace JSX {
interface Element {
}
interface IntrinsicElements {
[elemName: string]: any;
}
}

View File

@@ -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'

View 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
View File

@@ -0,0 +1,7 @@
declare namespace JSX {
interface Element {
}
interface IntrinsicElements {
[elemName: string]: any;
}
}

View File

@@ -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 = {};

View 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
View File

@@ -0,0 +1,7 @@
declare namespace JSX {
interface Element {
}
interface IntrinsicElements {
[elemName: string]: any;
}
}