Skip to content

Commit c975df3

Browse files
committed
don't drop functions (for now)
1 parent 88ce9da commit c975df3

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/vs/base/common/types.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -266,10 +266,10 @@ export type AddFirstParameterToFunctions<Target, TargetFunctionsReturnType, Firs
266266
};
267267

268268
/**
269-
* Mapped typed that replaces all occurrences of URI with UriComponents and drop all functions
269+
* Mapped typed that replaces all occurrences of URI with UriComponents
270+
* todo@joh drop functions
271+
* todo@joh use toJSON-results
270272
*/
271273
export type Serialized<T> = { [K in keyof T]: T[K] extends URI
272274
? UriComponents
273-
: T[K] extends Function
274-
? never
275275
: Serialized<T[K]> };

0 commit comments

Comments
 (0)