Move Project to a regular file.
This commit is contained in:
		
							parent
							
								
									ef83d407ae
								
							
						
					
					
						commit
						cf1a9032ba
					
				| 
						 | 
				
			
			@ -1,4 +1,5 @@
 | 
			
		|||
import {Generic, SimplexNoise} from './gegl/exports.js';
 | 
			
		||||
import Project from './project.js';
 | 
			
		||||
 | 
			
		||||
const [width, height] = [1920, 1080];
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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[] = [];
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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;
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			@ -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;
 | 
			
		||||
    };
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue