andrewrk / andrewrk/node-perlin-noise

Typescript Declarations

未關閉
#3 0 則留言 4 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
JavaScript
星號
33
分支
7
PR 合併指標
30 天內沒有已合併 PR

描述

Seeing as the last commit was 9+ years ago I don't expect typings to be added to the module, but if anyone else needs them this is the declaration file I've used:

```typescript
declare module "perlin-noise" {
type PerlinNoiseOptions = {
octaveCount?: number;
amplitude?: number;
persistence?: number;
};
declare function generatePerlinNoise(width: number, height: number, options?: PerlinNoiseOptions): number[];
declare function generateWhiteNoise(width: number, height: number): number[];

export {
PerlinNoiseOptions,
generateWhiteNoise,
generatePerlinNoise,
};
}
```

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。