Skip to content

Commit

Permalink
chore: change ember-resource to ember-usable
Browse files Browse the repository at this point in the history
  • Loading branch information
NullVoxPopuli authored and LevelbossMike committed Jun 2, 2020
1 parent ec4568b commit 2d0e112
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 11 deletions.
12 changes: 9 additions & 3 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,15 @@ import {
// NOTE: there is a lot of repetition here :(
// Repetition will be less when ember-statecharts _is_ TS?

type WithConfigParams<Context, Schema, Events extends EventObject> = Parameters<StateMachine<Context, Schema, Events>['withConfig']>;
type WithContextParams<Context, Schema, Events extends EventObject> = Parameters< StateMachine<Context, Schema, Events>['withContext']>;
type Send<Context, Schema, Events extends EventObject> = Interpreter<Context, Schema, Events>['send'];

// Private Types
// For building the Public Types?
// C = Context
// S = Schema
// E = Events
type WithConfigParams<C, S, E extends EventObject> = Parameters<StateMachine<C, S, E>['withConfig']>;
type WithContextParams<C, S, E extends EventObject> = Parameters< StateMachine<C, S, E>['withContext']>;
type Send<C, S, E extends EventObject> = Interpreter<C, S, E>['send'];

type InterpretedUsable<Context, Schema, Events extends EventObject> = {
state: State<Context, Events>;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"ember-auto-import": "^1.5.3",
"ember-cli-babel": "^7.18.0",
"ember-cli-htmlbars": "^4.2.3",
"ember-resource": "https://github.com/pzuraq/ember-usable#0d03a50",
"ember-usable": "https://github.com/pzuraq/ember-usable#0d03a50",
"xstate": "^4.8.0",
"@glimmer/tracking": "^1.0.0"
},
Expand Down
14 changes: 7 additions & 7 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6742,13 +6742,6 @@ ember-resolver@^7.0.0:
ember-cli-version-checker "^3.1.3"
resolve "^1.14.0"

"ember-resource@https://github.com/pzuraq/ember-usable#0d03a50":
version "0.0.0"
resolved "https://github.com/pzuraq/ember-usable#0d03a500a2f49041a4ddff0bb05b077c3907ed7d"
dependencies:
ember-cli-babel "^7.13.0"
ember-cli-htmlbars "^4.2.0"

ember-responsive@^3.0.5:
version "3.0.5"
resolved "https://registry.yarnpkg.com/ember-responsive/-/ember-responsive-3.0.5.tgz#690c96a051dcf7c10a8c3bcfb3b23ecc784e3f7d"
Expand Down Expand Up @@ -6933,6 +6926,13 @@ ember-try@^1.4.0:
rsvp "^4.7.0"
walk-sync "^1.1.3"

"ember-usable@https://github.com/pzuraq/ember-usable#0d03a50":
version "0.0.0"
resolved "https://github.com/pzuraq/ember-usable#0d03a500a2f49041a4ddff0bb05b077c3907ed7d"
dependencies:
ember-cli-babel "^7.13.0"
ember-cli-htmlbars "^4.2.0"

ember-wormhole@^0.5.5:
version "0.5.5"
resolved "https://registry.yarnpkg.com/ember-wormhole/-/ember-wormhole-0.5.5.tgz#db417ff748cb21e574cd5f233889897bc27096cb"
Expand Down

0 comments on commit 2d0e112

Please sign in to comment.