Skip to content

Commit b71750a

Browse files
committed
Migrate file system to KDL
1 parent 53c90c7 commit b71750a

File tree

4 files changed

+20
-60
lines changed

4 files changed

+20
-60
lines changed

inputfiles/addedTypes.jsonc

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -803,28 +803,6 @@
803803
}
804804
]
805805
}
806-
},
807-
"FileSystemFileHandle": {
808-
"properties": {
809-
"property": {
810-
"kind": {
811-
"name": "kind",
812-
"readonly": true,
813-
"overrideType": "\"file\""
814-
}
815-
}
816-
}
817-
},
818-
"FileSystemDirectoryHandle": {
819-
"properties": {
820-
"property": {
821-
"kind": {
822-
"name": "kind",
823-
"readonly": true,
824-
"overrideType": "\"directory\""
825-
}
826-
}
827-
}
828806
}
829807
}
830808
},

inputfiles/overridingTypes.jsonc

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1976,44 +1976,6 @@
19761976
]
19771977
}
19781978
},
1979-
"FileReader": {
1980-
"events": {
1981-
"event": [
1982-
{
1983-
"name": "loadstart",
1984-
"type": "ProgressEvent"
1985-
},
1986-
{
1987-
"name": "progress",
1988-
"type": "ProgressEvent"
1989-
},
1990-
{
1991-
"name": "load",
1992-
"type": "ProgressEvent"
1993-
},
1994-
{
1995-
"name": "abort",
1996-
"type": "ProgressEvent"
1997-
},
1998-
{
1999-
"name": "error",
2000-
"type": "ProgressEvent"
2001-
},
2002-
{
2003-
"name": "loadend",
2004-
"type": "ProgressEvent"
2005-
}
2006-
]
2007-
},
2008-
"properties": {
2009-
"property": {
2010-
"readyState": {
2011-
"name": "readyState",
2012-
"overrideType": "typeof FileReader.EMPTY | typeof FileReader.LOADING | typeof FileReader.DONE"
2013-
}
2014-
}
2015-
}
2016-
},
20171979
"FileSystemDirectoryHandle": {
20181980
"iterator": {
20191981
// It's true that Blink is the only supported engine for Symbol.asyncIterator,

inputfiles/patches/file-system.kdl

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
interface FileSystemFileHandle {
2+
property kind readonly=#true overrideType="\"file\""
3+
}
4+
5+
interface FileSystemDirectoryHandle {
6+
property kind readonly=#true overrideType="\"directory\""
7+
}
8+
9+
interface FileReader {
10+
event loadstart type=ProgressEvent
11+
event progress type=ProgressEvent
12+
event load type=ProgressEvent
13+
event abort type=ProgressEvent
14+
event error type=ProgressEvent
15+
event loadend type=ProgressEvent
16+
17+
property readyState overrideType="typeof FileReader.EMPTY | typeof FileReader.LOADING | typeof FileReader.DONE"
18+
}
19+

src/build/patches.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@ function handleProperty(child: Node): Partial<Property> {
230230
...optionalMember("optional", "boolean", child.properties?.optional),
231231
...optionalMember("overrideType", "string", child.properties?.overrideType),
232232
...optionalMember("type", "string", child.properties?.type),
233+
...optionalMember("readonly", "boolean", child.properties?.readonly),
233234
};
234235
}
235236

0 commit comments

Comments
 (0)