Skip to content

Commit

Permalink
Linted code
Browse files Browse the repository at this point in the history
  • Loading branch information
PlaryWasTaken committed Jan 25, 2024
1 parent ee7e7e3 commit e195800
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/factory.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CreateEngineOptions, EnvironmentVariables } from "./types";
import { CreateEngineOptions, EnvironmentVariables } from './types'
import LuaEngine from './engine'
import LuaWasm from './luawasm'
// A rollup plugin will resolve this to the current version on package.json
Expand Down
8 changes: 4 additions & 4 deletions src/global.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,11 @@ export default class Global extends Thread {
// To allow library users to specify custom types
// Higher is more important and will be evaluated first.
/**
* Registers a type extension for Lua objects.
* Registers a type extension for Lua objects.
* Higher priority is more important and will be evaluated first.
* @param {number} priority - Priority of the type extension.
* @param {LuaTypeExtension<unknown>} extension - The type extension to register.
*/
* @param {number} priority - Priority of the type extension.
* @param {LuaTypeExtension<unknown>} extension - The type extension to register.
*/
public registerTypeExtension(priority: number, extension: LuaTypeExtension<unknown>): void {
this.typeExtensions.push({ extension, priority })
this.typeExtensions.sort((a, b) => b.priority - a.priority)
Expand Down
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import LuaEngine from "./engine";
import LuaEngine from './engine'

export type LuaState = number

Expand Down

0 comments on commit e195800

Please sign in to comment.