mirror of
https://github.com/harivansh-afk/asap.it.git
synced 2026-04-15 09:01:13 +00:00
first commit
This commit is contained in:
commit
1cdbffff09
200 changed files with 30007 additions and 0 deletions
15
types/istextorbinary.d.ts
vendored
Normal file
15
types/istextorbinary.d.ts
vendored
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
/**
|
||||
* @note For some reason the types aren't picked up from node_modules so I declared the module here
|
||||
* with only the function that we use.
|
||||
*/
|
||||
declare module 'istextorbinary' {
|
||||
export interface EncodingOpts {
|
||||
/** Defaults to 24 */
|
||||
chunkLength?: number;
|
||||
|
||||
/** If not provided, will check the start, beginning, and end */
|
||||
chunkBegin?: number;
|
||||
}
|
||||
|
||||
export function getEncoding(buffer: Buffer | null, opts?: EncodingOpts): 'utf8' | 'binary' | null;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue