Comparing version 0.2.10 to 0.2.11
@@ -1,2 +0,2 @@ | ||
// This is for '#include' | ||
type CompileInput = string | { name: string, contents: string } | { name: string, contents: string }[]; | ||
type FileAccess = (filePath: string, relativeTo: string) => (null | string | { name: string, contents: string }); | ||
@@ -10,6 +10,6 @@ | ||
keepSymbols?: boolean; // Default: false | ||
fileAccess?: FileAccess; | ||
fileAccess?: FileAccess; // For '#include' | ||
} | ||
export function compile(input: string, args?: CompileArgs): { | ||
export function compile(input: CompileInput, args?: CompileArgs): { | ||
log: string; | ||
@@ -20,3 +20,3 @@ output: string | null; | ||
interface CompileArgsIDE { | ||
fileAccess?: FileAccess; | ||
fileAccess?: FileAccess; // For '#include' | ||
} | ||
@@ -35,3 +35,3 @@ | ||
export function compileIDE(input: string, args?: CompileArgsIDE): { | ||
export function compileIDE(input: CompileInput, args?: CompileArgsIDE): { | ||
diagnostics: { | ||
@@ -38,0 +38,0 @@ kind: 'error' | 'warning'; |
{ | ||
"name": "glslx", | ||
"version": "0.2.10", | ||
"version": "0.2.11", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/evanw/glslx", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
95498