-
-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
1,224 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
|
||
6.1.0 / 2018-11-02 | ||
================== | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import fetch from 'fetch'; | ||
|
||
export default function ajax( | ||
input: RequestInfo, | ||
init?: RequestInit | ||
): Promise<Response> { | ||
return fetch(input, init).then(response => { | ||
if (response.ok) { | ||
return response.json(); | ||
} | ||
|
||
throw response; | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,29 @@ | ||
// Type definitions for Ember Fetch | ||
// Type definitions for ember-fetch | ||
// Project: https://github.com/ember-cli/ember-fetch | ||
// Definitions by: Toran Billups <https://github.com/toranb> | ||
// TypeScript Version: 2.3 | ||
// Definitions by: Toran Billups <https://github.com/toranb>, Thomas Wang<https://github.com/xg-wang> | ||
/// <reference lib="es2015" /> | ||
/// <reference lib="dom" /> | ||
|
||
declare module 'fetch' { | ||
import RSVP from 'rsvp'; | ||
export default function fetch(input: RequestInfo, init?: RequestInit): RSVP.Promise<Response>; | ||
} | ||
import RSVP from 'rsvp'; | ||
export default function fetch( | ||
input: RequestInfo, | ||
init?: RequestInit | ||
): RSVP.Promise<Response>; | ||
export const Headers: { | ||
prototype: Headers; | ||
new (init?: HeadersInit): Headers; | ||
}; | ||
export const Request: { | ||
prototype: Request; | ||
new (input: RequestInfo, init?: RequestInit): Request; | ||
}; | ||
export const Response: { | ||
prototype: Response; | ||
new (body?: BodyInit | null, init?: ResponseInit): Response; | ||
error(): Response; | ||
redirect(url: string, status?: number): Response; | ||
}; | ||
export const AbortController: { | ||
prototype: AbortController; | ||
new (): AbortController; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
export default config; | ||
|
||
/** | ||
* Type declarations for | ||
* import config from './config/environment' | ||
* | ||
* For now these need to be managed by the developer | ||
* since different ember addons can materialize new entries. | ||
*/ | ||
declare const config: { | ||
environment: any; | ||
modulePrefix: string; | ||
podModulePrefix: string; | ||
locationType: string; | ||
rootURL: string; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"compilerOptions": { | ||
"target": "es2017", | ||
"allowJs": true, | ||
"moduleResolution": "node", | ||
"allowSyntheticDefaultImports": true, | ||
"noEmitOnError": false, | ||
"noEmit": true, | ||
"inlineSourceMap": true, | ||
"inlineSources": true, | ||
"baseUrl": ".", | ||
"module": "es6", | ||
"paths": { | ||
"dummy/tests/*": ["tests/*"], | ||
"dummy/*": ["tests/dummy/app/*", "app/*"], | ||
"fetch": ["index.d.ts"], | ||
"ember-fetch": ["addon"], | ||
"ember-fetch/*": ["addon/*"], | ||
"ember-fetch/test-support": ["addon-test-support"], | ||
"ember-fetch/test-support/*": ["addon-test-support/*"], | ||
"*": ["types/*"] | ||
} | ||
}, | ||
"include": [ | ||
"app/**/*", | ||
"addon/**/*", | ||
"tests/**/*", | ||
"types/**/*", | ||
"test-support/**/*", | ||
"addon-test-support/**/*" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/** | ||
* Catch-all for ember-data. | ||
*/ | ||
export default interface ModelRegistry { | ||
[key: string]: any; | ||
} |
Oops, something went wrong.