Skip to content

Commit 4ad16bd

Browse files
committed
Migrate KDL
1 parent 15d830b commit 4ad16bd

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

inputfiles/addedTypes.jsonc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -546,10 +546,6 @@
546546
// Full spec at https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill.
547547
"name": "AutoFill",
548548
"overrideType": "AutoFillBase | `${OptionalPrefixToken<AutoFillSection>}${OptionalPrefixToken<AutoFillAddressKind>}${AutoFillField}${OptionalPostfixToken<AutoFillCredentialField>}`"
549-
},
550-
{
551-
"name": "Directions",
552-
"overrideType": "\"forward\" | \"backward\" | \"none\""
553549
}
554550
]
555551
}

inputfiles/patches/html.kdl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ interface HTMLInputElement {
6363
}
6464
}
6565

66+
typedef Directions overrideType=#""forward" | "backward" | "none""#
67+
6668
dictionary StructuredSerializeOptions {
6769
member transfer {
6870
type {

src/build/patches.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,7 @@ function handleTypedef(node: Node): DeepPartial<TypeDef> {
453453
"string",
454454
node.properties?.legacyNamespace,
455455
),
456+
...optionalMember("overrideType", "string", node.properties?.overrideType),
456457
};
457458
}
458459

0 commit comments

Comments
 (0)