Skip to content

Commit eabaef4

Browse files
committed
remove MSApp interfaces
1 parent 475f27e commit eabaef4

File tree

4 files changed

+13
-205
lines changed

4 files changed

+13
-205
lines changed

TS.fsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1547,7 +1547,7 @@ module Emit =
15471547
target.Close()
15481548

15491549
let EmitDomWeb () =
1550-
EmitTheWholeThing Flavor.All GlobalVars.tsWebOutput
1550+
EmitTheWholeThing Flavor.Web GlobalVars.tsWebOutput
15511551
EmitES6Thing GlobalVars.tsWebES6Output
15521552

15531553
let EmitDomWorker () =

baselines/dom.generated.d.ts

Lines changed: 0 additions & 192 deletions
Original file line numberDiff line numberDiff line change
@@ -7284,16 +7284,6 @@ declare var Location: {
72847284
new(): Location;
72857285
};
72867286

7287-
interface LongRunningScriptDetectedEvent extends Event {
7288-
readonly executionTime: number;
7289-
stopPageScriptExecution: boolean;
7290-
}
7291-
7292-
declare var LongRunningScriptDetectedEvent: {
7293-
prototype: LongRunningScriptDetectedEvent;
7294-
new(): LongRunningScriptDetectedEvent;
7295-
};
7296-
72977287
interface MediaDeviceInfo {
72987288
readonly deviceId: string;
72997289
readonly groupId: string;
@@ -7676,56 +7666,6 @@ declare var MouseEvent: {
76767666
new(typeArg: string, eventInitDict?: MouseEventInit): MouseEvent;
76777667
};
76787668

7679-
interface MSApp {
7680-
clearTemporaryWebDataAsync(): MSAppAsyncOperation;
7681-
createBlobFromRandomAccessStream(type: string, seeker: any): Blob;
7682-
createDataPackage(object: any): any;
7683-
createDataPackageFromSelection(): any;
7684-
createFileFromStorageFile(storageFile: any): File;
7685-
createStreamFromInputStream(type: string, inputStream: any): MSStream;
7686-
execAsyncAtPriority(asynchronousCallback: MSExecAtPriorityFunctionCallback, priority: string, ...args: any[]): void;
7687-
execAtPriority(synchronousCallback: MSExecAtPriorityFunctionCallback, priority: string, ...args: any[]): any;
7688-
getCurrentPriority(): string;
7689-
getHtmlPrintDocumentSourceAsync(htmlDoc: any): Promise<any>;
7690-
getViewId(view: any): any;
7691-
isTaskScheduledAtPriorityOrHigher(priority: string): boolean;
7692-
pageHandlesAllApplicationActivations(enabled: boolean): void;
7693-
suppressSubdownloadCredentialPrompts(suppress: boolean): void;
7694-
terminateApp(exceptionObject: any): void;
7695-
readonly CURRENT: string;
7696-
readonly HIGH: string;
7697-
readonly IDLE: string;
7698-
readonly NORMAL: string;
7699-
}
7700-
declare var MSApp: MSApp;
7701-
7702-
interface MSAppAsyncOperationEventMap {
7703-
"complete": Event;
7704-
"error": Event;
7705-
}
7706-
7707-
interface MSAppAsyncOperation extends EventTarget {
7708-
readonly error: DOMError;
7709-
oncomplete: (this: MSAppAsyncOperation, ev: Event) => any;
7710-
onerror: (this: MSAppAsyncOperation, ev: Event) => any;
7711-
readonly readyState: number;
7712-
readonly result: any;
7713-
start(): void;
7714-
readonly COMPLETED: number;
7715-
readonly ERROR: number;
7716-
readonly STARTED: number;
7717-
addEventListener<K extends keyof MSAppAsyncOperationEventMap>(type: K, listener: (this: MSAppAsyncOperation, ev: MSAppAsyncOperationEventMap[K]) => any, useCapture?: boolean): void;
7718-
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
7719-
}
7720-
7721-
declare var MSAppAsyncOperation: {
7722-
prototype: MSAppAsyncOperation;
7723-
new(): MSAppAsyncOperation;
7724-
readonly COMPLETED: number;
7725-
readonly ERROR: number;
7726-
readonly STARTED: number;
7727-
};
7728-
77297669
interface MSAssertion {
77307670
readonly id: string;
77317671
readonly type: MSCredentialType;
@@ -7845,40 +7785,6 @@ declare var MSGraphicsTrust: {
78457785
new(): MSGraphicsTrust;
78467786
};
78477787

7848-
interface MSHTMLWebViewElement extends HTMLElement {
7849-
readonly canGoBack: boolean;
7850-
readonly canGoForward: boolean;
7851-
readonly containsFullScreenElement: boolean;
7852-
readonly documentTitle: string;
7853-
height: number;
7854-
readonly settings: MSWebViewSettings;
7855-
src: string;
7856-
width: number;
7857-
addWebAllowedObject(name: string, applicationObject: any): void;
7858-
buildLocalStreamUri(contentIdentifier: string, relativePath: string): string;
7859-
capturePreviewToBlobAsync(): MSWebViewAsyncOperation;
7860-
captureSelectedContentToDataPackageAsync(): MSWebViewAsyncOperation;
7861-
getDeferredPermissionRequestById(id: number): DeferredPermissionRequest;
7862-
getDeferredPermissionRequests(): DeferredPermissionRequest[];
7863-
goBack(): void;
7864-
goForward(): void;
7865-
invokeScriptAsync(scriptName: string, ...args: any[]): MSWebViewAsyncOperation;
7866-
navigate(uri: string): void;
7867-
navigateFocus(navigationReason: NavigationReason, origin: FocusNavigationOrigin): void;
7868-
navigateToLocalStreamUri(source: string, streamResolver: any): void;
7869-
navigateToString(contents: string): void;
7870-
navigateWithHttpRequestMessage(requestMessage: any): void;
7871-
refresh(): void;
7872-
stop(): void;
7873-
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: MSHTMLWebViewElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void;
7874-
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
7875-
}
7876-
7877-
declare var MSHTMLWebViewElement: {
7878-
prototype: MSHTMLWebViewElement;
7879-
new(): MSHTMLWebViewElement;
7880-
};
7881-
78827788
interface MSInputMethodContextEventMap {
78837789
"MSCandidateWindowHide": Event;
78847790
"MSCandidateWindowShow": Event;
@@ -8071,51 +7977,6 @@ declare var MSStreamReader: {
80717977
new(): MSStreamReader;
80727978
};
80737979

8074-
interface MSWebViewAsyncOperationEventMap {
8075-
"complete": Event;
8076-
"error": Event;
8077-
}
8078-
8079-
interface MSWebViewAsyncOperation extends EventTarget {
8080-
readonly error: DOMError;
8081-
oncomplete: (this: MSWebViewAsyncOperation, ev: Event) => any;
8082-
onerror: (this: MSWebViewAsyncOperation, ev: Event) => any;
8083-
readonly readyState: number;
8084-
readonly result: any;
8085-
readonly target: MSHTMLWebViewElement;
8086-
readonly type: number;
8087-
start(): void;
8088-
readonly COMPLETED: number;
8089-
readonly ERROR: number;
8090-
readonly STARTED: number;
8091-
readonly TYPE_CAPTURE_PREVIEW_TO_RANDOM_ACCESS_STREAM: number;
8092-
readonly TYPE_CREATE_DATA_PACKAGE_FROM_SELECTION: number;
8093-
readonly TYPE_INVOKE_SCRIPT: number;
8094-
addEventListener<K extends keyof MSWebViewAsyncOperationEventMap>(type: K, listener: (this: MSWebViewAsyncOperation, ev: MSWebViewAsyncOperationEventMap[K]) => any, useCapture?: boolean): void;
8095-
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
8096-
}
8097-
8098-
declare var MSWebViewAsyncOperation: {
8099-
prototype: MSWebViewAsyncOperation;
8100-
new(): MSWebViewAsyncOperation;
8101-
readonly COMPLETED: number;
8102-
readonly ERROR: number;
8103-
readonly STARTED: number;
8104-
readonly TYPE_CAPTURE_PREVIEW_TO_RANDOM_ACCESS_STREAM: number;
8105-
readonly TYPE_CREATE_DATA_PACKAGE_FROM_SELECTION: number;
8106-
readonly TYPE_INVOKE_SCRIPT: number;
8107-
};
8108-
8109-
interface MSWebViewSettings {
8110-
isIndexedDBEnabled: boolean;
8111-
isJavaScriptEnabled: boolean;
8112-
}
8113-
8114-
declare var MSWebViewSettings: {
8115-
prototype: MSWebViewSettings;
8116-
new(): MSWebViewSettings;
8117-
};
8118-
81197980
interface MutationEvent extends Event {
81207981
readonly attrChange: number;
81217982
readonly attrName: string;
@@ -8181,34 +8042,6 @@ declare var NamedNodeMap: {
81818042
new(): NamedNodeMap;
81828043
};
81838044

8184-
interface NavigationCompletedEvent extends NavigationEvent {
8185-
readonly isSuccess: boolean;
8186-
readonly webErrorStatus: number;
8187-
}
8188-
8189-
declare var NavigationCompletedEvent: {
8190-
prototype: NavigationCompletedEvent;
8191-
new(): NavigationCompletedEvent;
8192-
};
8193-
8194-
interface NavigationEvent extends Event {
8195-
readonly uri: string;
8196-
}
8197-
8198-
declare var NavigationEvent: {
8199-
prototype: NavigationEvent;
8200-
new(): NavigationEvent;
8201-
};
8202-
8203-
interface NavigationEventWithReferrer extends NavigationEvent {
8204-
readonly referer: string;
8205-
}
8206-
8207-
declare var NavigationEventWithReferrer: {
8208-
prototype: NavigationEventWithReferrer;
8209-
new(): NavigationEventWithReferrer;
8210-
};
8211-
82128045
interface Navigator extends Object, NavigatorID, NavigatorOnLine, NavigatorContentUtils, NavigatorStorageUtils, NavigatorGeolocation, MSNavigatorDoNotTrack, MSFileSaver, NavigatorBeacon, NavigatorConcurrentHardware, NavigatorUserMedia {
82138046
readonly authentication: WebAuthentication;
82148047
readonly cookieEnabled: boolean;
@@ -9422,16 +9255,6 @@ declare var Screen: {
94229255
new(): Screen;
94239256
};
94249257

9425-
interface ScriptNotifyEvent extends Event {
9426-
readonly callingUri: string;
9427-
readonly value: string;
9428-
}
9429-
9430-
declare var ScriptNotifyEvent: {
9431-
prototype: ScriptNotifyEvent;
9432-
new(): ScriptNotifyEvent;
9433-
};
9434-
94359258
interface ScriptProcessorNodeEventMap {
94369259
"audioprocess": AudioProcessingEvent;
94379260
}
@@ -11837,15 +11660,6 @@ declare var UIEvent: {
1183711660
new(typeArg: string, eventInitDict?: UIEventInit): UIEvent;
1183811661
};
1183911662

11840-
interface UnviewableContentIdentifiedEvent extends NavigationEventWithReferrer {
11841-
readonly mediaType: string;
11842-
}
11843-
11844-
declare var UnviewableContentIdentifiedEvent: {
11845-
prototype: UnviewableContentIdentifiedEvent;
11846-
new(): UnviewableContentIdentifiedEvent;
11847-
};
11848-
1184911663
interface URL {
1185011664
hash: string;
1185111665
host: string;
@@ -14221,15 +14035,9 @@ interface IntersectionObserverCallback {
1422114035
interface MediaQueryListListener {
1422214036
(mql: MediaQueryList): void;
1422314037
}
14224-
interface MSExecAtPriorityFunctionCallback {
14225-
(...args: any[]): any;
14226-
}
1422714038
interface MSLaunchUriCallback {
1422814039
(): void;
1422914040
}
14230-
interface MSUnsafeFunctionCallback {
14231-
(): any;
14232-
}
1423314041
interface MutationCallback {
1423414042
(mutations: MutationRecord[], observer: MutationObserver): void;
1423514043
}

inputfiles/addedTypes.json

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@
9090
},
9191
{
9292
"kind": "interface",
93-
"flavor": "Worker",
9493
"name": "ImageBitmapOptions",
9594
"properties": [
9695
{
@@ -122,7 +121,6 @@
122121
{
123122
"kind": "interface",
124123
"name": "ImageBitmap",
125-
"flavor": "Worker",
126124
"properties": [
127125
{
128126
"name": "width",
@@ -1268,7 +1266,7 @@
12681266
{
12691267
"kind": "interface",
12701268
"name": "ParentNode",
1271-
"flavor": "DOM",
1269+
"flavor": "Web",
12721270
"properties": [
12731271
{
12741272
"name": "children",
@@ -1310,7 +1308,7 @@
13101308
{
13111309
"kind": "typedef",
13121310
"name": "ScrollRestoration",
1313-
"flavor": "DOM",
1311+
"flavor": "Web",
13141312
"type": "\"auto\" | \"manual\""
13151313
},
13161314
{
@@ -1328,7 +1326,7 @@
13281326
{
13291327
"kind": "interface",
13301328
"name": "DocumentOrShadowRoot",
1331-
"flavor": "DOM",
1329+
"flavor": "Web",
13321330
"methods": [
13331331
{
13341332
"name": "getSelection",
@@ -1360,7 +1358,7 @@
13601358
"kind": "interface",
13611359
"name": "ShadowRoot",
13621360
"extends": "DocumentOrShadowRoot, DocumentFragment",
1363-
"flavor": "DOM",
1361+
"flavor": "Web",
13641362
"properties": [
13651363
{
13661364
"name": "host",
@@ -1402,7 +1400,7 @@
14021400
{
14031401
"kind": "interface",
14041402
"name": "ShadowRootInit",
1405-
"flavor": "DOM",
1403+
"flavor": "Web",
14061404
"properties": [
14071405
{
14081406
"name": "mode",
@@ -1425,7 +1423,7 @@
14251423
"kind": "interface",
14261424
"name": "HTMLSlotElement",
14271425
"extends": "HTMLElement",
1428-
"flavor": "DOM",
1426+
"flavor": "Web",
14291427
"properties": [
14301428
{
14311429
"name": "name",
@@ -1442,7 +1440,7 @@
14421440
{
14431441
"kind": "interface",
14441442
"name": "AssignedNodesOptions",
1445-
"flavor": "DOM",
1443+
"flavor": "Web",
14461444
"properties": [
14471445
{
14481446
"name": "flatten?",
@@ -1472,7 +1470,7 @@
14721470
{
14731471
"kind": "interface",
14741472
"name": "ElementDefinitionOptions",
1475-
"flavor": "DOM",
1473+
"flavor": "Web",
14761474
"properties": [{
14771475
"name": "extends",
14781476
"type": "string"
@@ -1481,7 +1479,7 @@
14811479
{
14821480
"kind": "interface",
14831481
"name": "CustomElementRegistry",
1484-
"flavor": "DOM",
1482+
"flavor": "Web",
14851483
"methods": [{
14861484
"name": "define",
14871485
"signatures": ["define(name: string, constructor: Function, options?: ElementDefinitionOptions): void"]
@@ -1538,7 +1536,7 @@
15381536
"kind": "method",
15391537
"interface": "DocumentFragment",
15401538
"name": "getElementById",
1541-
"flavor": "DOM",
1539+
"flavor": "Web",
15421540
"signatures": ["getElementById(elementId: string): HTMLElement | null"]
15431541
},
15441542
{

inputfiles/knownWorkerInterfaces.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@
5252
"IDBRequest",
5353
"IDBTransaction",
5454
"IDBVersionChangeEvent",
55+
"ImageBitmap",
56+
"ImageBitmapOptions",
5557
"ImageData",
5658
"KeyAlgorithm",
5759
"MessageChannel",

0 commit comments

Comments
 (0)