Add __PURE__ annotations for x-* exports (#1750)

This commit is contained in:
Jaco
2023-02-28 11:46:56 +02:00
committed by GitHub
parent ea96abc1a4
commit 6fb73f3124
6 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -30,4 +30,4 @@ async function nodeFetch (...args: Parameters<typeof fetch>): Promise<Response>
return modFn(...args);
}
export const fetch = extractGlobal('fetch', nodeFetch);
export const fetch = /*#__PURE__*/ extractGlobal('fetch', nodeFetch);
+1 -1
View File
@@ -7,4 +7,4 @@ import { TextDecoder as Fallback } from './fallback';
export { packageInfo } from './packageInfo';
export const TextDecoder = extractGlobal('TextDecoder', Fallback);
export const TextDecoder = /*#__PURE__*/ extractGlobal('TextDecoder', Fallback);
+1 -1
View File
@@ -7,4 +7,4 @@ import { extractGlobal } from '@polkadot/x-global';
export { packageInfo } from './packageInfo';
export const TextDecoder = extractGlobal('TextDecoder', util.TextDecoder);
export const TextDecoder = /*#__PURE__*/ extractGlobal('TextDecoder', util.TextDecoder);
+1 -1
View File
@@ -7,4 +7,4 @@ import { TextEncoder as Fallback } from './fallback';
export { packageInfo } from './packageInfo';
export const TextEncoder = extractGlobal('TextEncoder', Fallback);
export const TextEncoder = /*#__PURE__*/ extractGlobal('TextEncoder', Fallback);
+1 -1
View File
@@ -20,4 +20,4 @@ class Fallback {
}
}
export const TextEncoder = extractGlobal('TextEncoder', Fallback);
export const TextEncoder = /*#__PURE__*/ extractGlobal('TextEncoder', Fallback);
+1 -1
View File
@@ -7,4 +7,4 @@ import { extractGlobal } from '@polkadot/x-global';
export { packageInfo } from './packageInfo';
export const WebSocket = extractGlobal('WebSocket', ws.w3cwebsocket);
export const WebSocket = /*#__PURE__*/ extractGlobal('WebSocket', ws.w3cwebsocket);