Move Project to a regular file.

This commit is contained in:
Bauke 2022-03-07 17:33:04 +01:00
parent ef83d407ae
commit cf1a9032ba
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
4 changed files with 12 additions and 12 deletions

View File

@ -1,4 +1,5 @@
import {Generic, SimplexNoise} from './gegl/exports.js';
import Project from './project.js';
const [width, height] = [1920, 1080];

View File

@ -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<void> {
const projects: Project[] = [];

10
source/project.ts Normal file
View File

@ -0,0 +1,10 @@
import {BaseOperation} from './gegl/exports.js';
export default interface Project {
name: string;
operations: Array<InstanceType<typeof BaseOperation>>;
resolution: {
height: number;
width: number;
};
}

12
source/types.d.ts vendored
View File

@ -1,12 +0,0 @@
import {BaseOperation} from './gegl/exports.js';
declare global {
interface Project {
name: string;
operations: Array<InstanceType<typeof BaseOperation>>;
resolution: {
height: number;
width: number;
};
}
}