Skip to content

Commit 9b4915a

Browse files
authored
fix: expose PropFnInterface (#849)
1 parent 2a8dd27 commit 9b4915a

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

packages/qwik/src/core/api.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,8 +305,12 @@ export type OnRenderFn<PROPS> = (props: PROPS) => JSXNode<any> | null | (() => J
305305
// @alpha
306306
export const pauseContainer: (elmOrDoc: Element | Document, defaultParentJSON?: Element) => Promise<SnapshotResult>;
307307

308-
// Warning: (ae-forgotten-export) The symbol "PropFnInterface" needs to be exported by the entry point index.d.ts
309-
//
308+
// @public (undocumented)
309+
export interface PropFnInterface<ARGS extends any[], RET> {
310+
// (undocumented)
311+
(...args: ARGS): Promise<RET>;
312+
}
313+
310314
// @public (undocumented)
311315
export type PropFunction<T extends Function> = T extends (...args: infer ARGS) => infer RET ? PropFnInterface<ARGS, RET> : never;
312316

packages/qwik/src/core/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export type { SnapshotState, SnapshotResult } from './object/store';
2222
//////////////////////////////////////////////////////////////////////////////////////////
2323
export { $ } from './import/qrl.public';
2424
export { qrl, inlinedQrl } from './import/qrl';
25-
export type { QRL, PropFunction } from './import/qrl.public';
25+
export type { QRL, PropFunction, PropFnInterface } from './import/qrl.public';
2626
export type { Props } from './props/props.public';
2727
export { implicit$FirstArg } from './util/implicit_dollar';
2828

0 commit comments

Comments
 (0)