hapijs / hapijs/vise

Add typings

Open
#31 0 comments 0 reactions 0 assignees View on GitHub
feature
Dominant language
JavaScript
Stars
7
Forks
14
PR merge metrics
No merged PRs in 30d

Description

I am currently using the following to type `@hapi/vise`. It would be nice if this module exported its own types. I d'ont have the time or resources to make a PR. Sorry about that.

```ts
// types.d.ts

declare module '@hapi/vise' {
export class Vise {
readonly length: number
push(bhunk: Buffer): void
readUInt8(pos: number): undefined | number
at(pos: number): undefined | number
chunks(): Buffer[]
shift(length: number): Buffer[]
startsWith(value: Buffer, pos?: number, length?: number): boolean
}
}

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.