-
Notifications
You must be signed in to change notification settings - Fork 3
Closed
toji/webidl2ts
#1Description
WebIDL sequence
s are (I think) equivalent to TypeScript Iterable
s - the WebIDL conversion rules from JS will iterate the value to produce an array. For example:
dictionary GPUBindGroupLayoutDescriptor : GPUObjectDescriptorBase {
required sequence<GPUBindGroupLayoutEntry> entries;
};
generates:
interface GPUBindGroupLayoutDescriptor extends GPUObjectDescriptorBase {
entries: Array<GPUBindGroupLayoutEntry>;
}
but should generate:
interface GPUBindGroupLayoutDescriptor extends GPUObjectDescriptorBase {
entries: Iterable<GPUBindGroupLayoutEntry>;
}
Metadata
Metadata
Assignees
Labels
No labels