mirror of
https://github.com/denoland/deno.git
synced 2025-09-29 13:44:47 +00:00
dedup type declarations (#4718)
Blob, BlobPart, BufferSource, ReferrerPolicy, BlobPart, AbortSignal, AbortSignalEventMap
This commit is contained in:
parent
0641ad0d9b
commit
da28fc1e7b
8 changed files with 16 additions and 81 deletions
|
@ -4,19 +4,15 @@
|
|||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
// TODO don't disable this warning
|
||||
|
||||
import { AbortSignal, QueuingStrategySizeCallback } from "../dom_types.d.ts";
|
||||
import { QueuingStrategySizeCallback } from "../dom_types.d.ts";
|
||||
|
||||
// common stream fields
|
||||
|
||||
export const state_ = Symbol("state_");
|
||||
export const storedError_ = Symbol("storedError_");
|
||||
|
||||
// ---------
|
||||
|
||||
export type ErrorResult = any;
|
||||
|
||||
// ---------
|
||||
|
||||
export function isInteger(value: number): boolean {
|
||||
if (!isFinite(value)) {
|
||||
// covers NaN, +Infinity and -Infinity
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue