Skip to content

Commit e051be9

Browse files
committed
fix(types): add type visibility to the FunctionRunner to keep private
1 parent 6504660 commit e051be9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

addon/-private/resources/function-runner.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,12 @@ export class FunctionRunner<
2727
Fn extends ResourceFn<Return, Args> = ResourceFn<Return, Args>
2828
> extends LifecycleResource<BaseArgs<Args>> {
2929
// Set when using useResource
30-
declare [FUNCTION_TO_RUN]: Fn;
31-
declare [SECRET_VALUE]: Return | undefined;
30+
protected declare [FUNCTION_TO_RUN]: Fn;
31+
private declare [SECRET_VALUE]: Return | undefined;
3232

3333
get value(): Return | undefined {
34-
consume(this, SECRET_VALUE);
34+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
35+
consume(this, SECRET_VALUE as any);
3536

3637
return this[SECRET_VALUE];
3738
}

0 commit comments

Comments
 (0)