From cf1a9032bab1d43e5bf5a83949a123030e439746 Mon Sep 17 00:00:00 2001 From: Bauke Date: Mon, 7 Mar 2022 17:33:04 +0100 Subject: [PATCH] Move Project to a regular file. --- source/2022-03-06.ts | 1 + source/driftingnebula.ts | 1 + source/project.ts | 10 ++++++++++ source/types.d.ts | 12 ------------ 4 files changed, 12 insertions(+), 12 deletions(-) create mode 100644 source/project.ts delete mode 100644 source/types.d.ts diff --git a/source/2022-03-06.ts b/source/2022-03-06.ts index f0d8977..d3d5c65 100644 --- a/source/2022-03-06.ts +++ b/source/2022-03-06.ts @@ -1,4 +1,5 @@ import {Generic, SimplexNoise} from './gegl/exports.js'; +import Project from './project.js'; const [width, height] = [1920, 1080]; diff --git a/source/driftingnebula.ts b/source/driftingnebula.ts index fe3948b..e2c0d1f 100644 --- a/source/driftingnebula.ts +++ b/source/driftingnebula.ts @@ -5,6 +5,7 @@ import {performance} from 'node:perf_hooks'; import {execa} from 'execa'; import {Crop} from './gegl/exports.js'; +import Project from './project.js'; async function main(): Promise { const projects: Project[] = []; diff --git a/source/project.ts b/source/project.ts new file mode 100644 index 0000000..2952f41 --- /dev/null +++ b/source/project.ts @@ -0,0 +1,10 @@ +import {BaseOperation} from './gegl/exports.js'; + +export default interface Project { + name: string; + operations: Array>; + resolution: { + height: number; + width: number; + }; +} diff --git a/source/types.d.ts b/source/types.d.ts deleted file mode 100644 index e298a7b..0000000 --- a/source/types.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import {BaseOperation} from './gegl/exports.js'; - -declare global { - interface Project { - name: string; - operations: Array>; - resolution: { - height: number; - width: number; - }; - } -}