File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -160,13 +160,9 @@ const schemelessBlockList = new SafeSet([
160160 } ;
161161}
162162
163- /**
164- * @typedef {import('../../../typings/bindings').InternalBindingMap } InternalBindingMap
165- */
166163// Set up internalBinding() in the closure.
167- // Do not use `internalBinding` variable name due to the breakage of TypeScript autocompletion.
168164/**
169- * @type {<T extends keyof InternalBindingMap>(binding: T) => InternalBindingMap[T] }
165+ * @type {import('../../../typings/bindings').InternalBinding }
170166 */
171167let internalBinding ;
172168{
Original file line number Diff line number Diff line change @@ -31,3 +31,5 @@ export type InternalBindingMap = {
3131 util : UtilBindings ;
3232 worker : WorkerBinding ;
3333}
34+
35+ export type InternalBinding < T extends keyof InternalBindingMap > = ( binding : T ) => InternalBindingMap [ T ] ;
You can’t perform that action at this time.
0 commit comments