Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/spicy-rings-check.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@qwik.dev/core': patch
---

FEAT: Introduced the QRLInternal type
1 change: 1 addition & 0 deletions packages/qwik/src/core/internal.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export { _noopQrl, _noopQrlDEV, _regSymbol } from './shared/qrl/qrl';
export type { QRLInternal as _QRLInternal } from './shared/qrl/qrl-class';
// ^ keep this above to avoid circular dependency issues

export {
Expand Down
5 changes: 5 additions & 0 deletions packages/qwik/src/core/qwik.core.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -664,6 +664,11 @@ export const qrlDEV: <T = any>(chunkOrFn: string | (() => Promise<any>), symbol:
// @public
export type QRLEventHandlerMulti<EV extends Event, EL> = QRL<EventHandler<EV, EL>> | undefined | null | QRLEventHandlerMulti<EV, EL>[];

// Warning: (ae-forgotten-export) The symbol "QRLInternalMethods" needs to be exported by the entry point index.d.ts
//
// @internal (undocumented)
export type _QRLInternal<TYPE = unknown> = QRL<TYPE> & QRLInternalMethods<TYPE>;

// @internal
export const _qrlSync: <TYPE extends Function>(fn: TYPE, serializedFn?: string) => SyncQRL<TYPE>;

Expand Down
1 change: 1 addition & 0 deletions packages/qwik/src/core/shared/qrl/qrl-class.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ export type QRLInternalMethods<TYPE> = {
$setContainer$(containerEl: Element | undefined): Element | undefined;
};

/** @internal */
export type QRLInternal<TYPE = unknown> = QRL<TYPE> & QRLInternalMethods<TYPE>;

const resolvedSymbol = Symbol('resolved');
Expand Down