Skip to content

Commit 00dd7db

Browse files
committed
fix(soba): export new animations types as public api
1 parent 583fea9 commit 00dd7db

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

libs/soba/misc/src/lib/animations.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { computed, effect, ElementRef, Injector, isSignal, signal, untracked } from '@angular/core';
1+
import { computed, effect, ElementRef, Injector, isSignal, Signal, signal, untracked } from '@angular/core';
22
import { injectBeforeRender, resolveRef } from 'angular-three';
33
import { assertInjector } from 'ngxtension/assert-injector';
44
import { AnimationAction, AnimationClip, AnimationMixer, Object3D } from 'three';
@@ -7,11 +7,12 @@ import { AnimationAction, AnimationClip, AnimationMixer, Object3D } from 'three'
77
* name: any to allow consumers to pass in type-safe animation clips
88
*/
99
type NgtsAnimationClipWithoutName = Omit<AnimationClip, 'name'> & { name: any };
10-
type NgtsAnimationClip = Omit<NgtsAnimationClipWithoutName, 'clone'> & { clone: () => NgtsAnimationClip };
11-
type NgtsAnimationClips<TAnimationNames extends string> = {
10+
export type NgtsAnimationClip = Omit<NgtsAnimationClipWithoutName, 'clone'> & { clone: () => NgtsAnimationClip };
11+
export type NgtsAnimationClips<TAnimationNames extends string> = {
1212
[Name in TAnimationNames]: Omit<NgtsAnimationClip, 'name'> & { name: Name };
1313
}[TAnimationNames];
14-
type NgtsAnimationApi<T extends NgtsAnimationClip> = {
14+
export type NgtsAnimationApi<T extends NgtsAnimationClip> = {
15+
ready: Signal<boolean>;
1516
clips: T[];
1617
mixer: AnimationMixer;
1718
names: T['name'][];

0 commit comments

Comments
 (0)