Skip to content

Commit

Permalink
Merge pull request #661 from ember-animation/update-signature
Browse files Browse the repository at this point in the history
Glint: make predicate Positional in animated-if and animated-value signatures
  • Loading branch information
SergeAstapov authored Dec 5, 2023
2 parents c60620f + 40df28b commit fc93266
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion addon/src/components/animated-if.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import type { AnimatedEachSignature } from './animated-each.ts';

interface AnimatedIfSignature<T> {
Args: {
Named: AnimatedEachSignature<any>['Args']['Named'] & { predicate: T };
Positional: [T];
Named: AnimatedEachSignature<[T]>['Args']['Named'];
};
Blocks: {
default: [];
Expand Down
4 changes: 2 additions & 2 deletions addon/src/components/animated-value.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import type { AnimatedEachSignature } from './animated-each.ts';

interface AnimatedValueSignature<T> {
Args: {
Positional?: [T] | [];
Named: AnimatedEachSignature<T>['Args']['Named'] & { value?: T };
Positional: [T];
Named: AnimatedEachSignature<[T]>['Args']['Named'];
};
Blocks: {
default: [T];
Expand Down

0 comments on commit fc93266

Please # to comment.