Skip to content

Commit

Permalink
exclude apis provided by react-native
Browse files Browse the repository at this point in the history
  • Loading branch information
tido64 committed Aug 29, 2023
1 parent 95a64a2 commit dd425b3
Showing 1 changed file with 19 additions and 18 deletions.
37 changes: 19 additions & 18 deletions incubator/@react-native-webapis/scan/src/web_apis.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
/**
* THIS ARRAY MUST BE SORTED! We perform binary searches on it.
*
* Names extracted from `lib.dom.d.ts` in TypeScript 5.1.6
* Names extracted from `lib.dom.d.ts` in TypeScript 5.1.6, subtracting names
* in `react-native/types/modules/globals.d.ts`.
*/
pub static WEB_APIS: &'static [&str] = &[
"AbortController",
"AbortSignal",
//"AbortController", // Polyfilled by React Native
//"AbortSignal", // Polyfilled by React Native
"AbstractRange",
"AnalyserNode",
"Animation",
Expand Down Expand Up @@ -33,7 +34,7 @@ pub static WEB_APIS: &'static [&str] = &[
"BaseAudioContext",
"BeforeUnloadEvent",
"BiquadFilterNode",
"Blob",
//"Blob", // Polyfilled by React Native
"BlobEvent",
"BroadcastChannel",
"ByteLengthQueuingStrategy",
Expand Down Expand Up @@ -148,11 +149,11 @@ pub static WEB_APIS: &'static [&str] = &[
"Event",
"EventCounts",
"EventSource",
"EventTarget",
//"EventTarget", // Polyfilled by React Native
"External",
"File",
//"File", // Polyfilled by React Native
"FileList",
"FileReader",
//"FileReader", // Polyfilled by React Native
"FileSystem",
"FileSystemDirectoryEntry",
"FileSystemDirectoryHandle",
Expand All @@ -166,7 +167,7 @@ pub static WEB_APIS: &'static [&str] = &[
"FontFace",
"FontFaceSet",
"FontFaceSetLoadEvent",
"FormData",
//"FormData", // Polyfilled by React Native
"FormDataEvent",
"GainNode",
"Gamepad",
Expand Down Expand Up @@ -255,7 +256,7 @@ pub static WEB_APIS: &'static [&str] = &[
"HTMLUnknownElement",
"HTMLVideoElement",
"HashChangeEvent",
"Headers",
//"Headers", // Polyfilled by React Native
"History",
"IDBCursor",
"IDBCursorWithValue",
Expand Down Expand Up @@ -370,7 +371,7 @@ pub static WEB_APIS: &'static [&str] = &[
"PointerEvent",
"PopStateEvent",
"ProcessingInstruction",
"ProgressEvent",
//"ProgressEvent", // Polyfilled by React Native
"PromiseRejectionEvent",
"PublicKeyCredential",
"PushManager",
Expand Down Expand Up @@ -410,11 +411,11 @@ pub static WEB_APIS: &'static [&str] = &[
"Report",
"ReportBody",
"ReportingObserver",
"Request",
//"Request", // Polyfilled by React Native
"ResizeObserver",
"ResizeObserverEntry",
"ResizeObserverSize",
"Response",
//"Response", // Polyfilled by React Native
"RuntimeError",
"SVGAElement",
"SVGAngle",
Expand Down Expand Up @@ -562,8 +563,8 @@ pub static WEB_APIS: &'static [&str] = &[
"TransitionEvent",
"TreeWalker",
"UIEvent",
"URL",
"URLSearchParams",
//"URL", // Polyfilled by React Native
//"URLSearchParams", // Polyfilled by React Native
"UserActivation",
"VTTCue",
"VTTRegion",
Expand Down Expand Up @@ -594,7 +595,7 @@ pub static WEB_APIS: &'static [&str] = &[
"WebGLTransformFeedback",
"WebGLUniformLocation",
"WebGLVertexArrayObject",
"WebSocket",
//"WebSocket", // Polyfilled by React Native
"WheelEvent",
"Window",
"Worker",
Expand All @@ -603,9 +604,9 @@ pub static WEB_APIS: &'static [&str] = &[
"WritableStreamDefaultController",
"WritableStreamDefaultWriter",
"XMLDocument",
"XMLHttpRequest",
"XMLHttpRequestEventTarget",
"XMLHttpRequestUpload",
//"XMLHttpRequest", // Polyfilled by React Native
//"XMLHttpRequestEventTarget", // Polyfilled by React Native
//"XMLHttpRequestUpload", // Polyfilled by React Native
"XMLSerializer",
"XPathEvaluator",
"XPathExpression",
Expand Down

0 comments on commit dd425b3

Please sign in to comment.