mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 14:27:04 +00:00
[ember] refactor @ember/error out into a separate module (#28792)
* [ember] refactor @ember/error out into a seperate module fixes: https://github.com/typed-ember/ember-cli-typescript/issues/269 * [@ember/error] enable all tslint rules
This commit is contained in:
committed by
Ryan Cavanaugh
parent
614492e26b
commit
1da1401566
@@ -0,0 +1,3 @@
|
||||
import Error from '@ember/error';
|
||||
|
||||
new Error('Fuuuuuuuu'); // $ExpectType Error
|
||||
Vendored
+10
@@ -0,0 +1,10 @@
|
||||
// Type definitions for @ember/error 3.0
|
||||
// Project: http://emberjs.com/
|
||||
// Definitions by: Mike North <https://github.com/mike-north>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.8
|
||||
|
||||
import Ember from 'ember';
|
||||
|
||||
declare const Error: typeof Ember.Error;
|
||||
export default Error;
|
||||
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es5",
|
||||
"lib": [
|
||||
"es6",
|
||||
"dom"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"paths": {
|
||||
"@ember/error": ["ember__error"]
|
||||
},
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"ember__error-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"extends": "dtslint/dt.json",
|
||||
"rules": {
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user