diff --git a/package.json b/package.json index b281b63..de79d29 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "url": "https://github.com/joshforisha/open-simplex-noise-js/issues" }, "files": [ - "lib" + "src" ], "contributors": [ "Florian Völker " diff --git a/src/index.ts b/src/index.ts index 7a6c315..7b6875c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -22,11 +22,11 @@ import { p4D } from "./constants"; -type Noise2D = (x: number, y: number) => number; +export type Noise2D = (x: number, y: number) => number; -type Noise3D = (x: number, y: number, z: number) => number; +export type Noise3D = (x: number, y: number, z: number) => number; -type Noise4D = (x: number, y: number, z: number, w: number) => number; +export type Noise4D = (x: number, y: number, z: number, w: number) => number; interface Contribution2D { dx: number;