Skip to content

Commit

Permalink
fix: silence TypeScript complaining about unresolved lua file imports (
Browse files Browse the repository at this point in the history
  • Loading branch information
timkurvers authored Apr 9, 2024
1 parent 98efeea commit fd7b1ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/ui/scripting/ScriptingContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ import {
to_luastring,
} from './lua';

import bitLua from './vendor/bit.lua';
import compatLua from './vendor/compat.lua';
import bitLua from './vendor/bit.lua?raw'; // eslint-disable-line import/no-unresolved
import compatLua from './vendor/compat.lua?raw'; // eslint-disable-line import/no-unresolved

import FrameScriptObject from './FrameScriptObject';

Expand Down
2 changes: 1 addition & 1 deletion vendor/global.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Ensures `import file from './file.lua'` does not trip up TypeScript compiler
declare module '*.lua' {
declare module '*.lua?raw' {
const format: string;
export default format;
}

0 comments on commit fd7b1ac

Please sign in to comment.