Skip to content

Commit 949880c

Browse files
committed
Missin withFields method
1 parent 7aa7b28 commit 949880c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

compiler-core/templates/prelude.d.mts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ export class Ok<T, E> extends Result<T, E> {
106106
/** @deprecated */
107107
constructor(value: T);
108108
/** @deprecated */
109+
withFields<K extends keyof this>(fields: { [P in K]: this[P] }): this;
110+
/** @deprecated */
109111
static isResult(data: unknown): boolean;
110112
}
111113
/** @deprecated */
@@ -115,6 +117,8 @@ export class Error<T, E> extends Result<T, E> {
115117
/** @deprecated */
116118
constructor(value: E);
117119
/** @deprecated */
120+
withFields<K extends keyof this>(fields: { [P in K]: this[P] }): this;
121+
/** @deprecated */
118122
static isResult(data: unknown): boolean;
119123
}
120124

0 commit comments

Comments
 (0)