-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
69 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
interface Module { | ||
sayHello: (name: string) => string; | ||
} | ||
|
||
declare const Module: Module; | ||
|
||
export = Module; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
local Module = {} | ||
|
||
function Module.sayHello(name: string) | ||
return `Hello {name}!` | ||
end | ||
|
||
return Module |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"compilerOptions": { | ||
// required | ||
"allowSyntheticDefaultImports": true, | ||
"jsx": "react", | ||
"jsxFactory": "React.createElement", | ||
"jsxFragmentFactory": "React.Fragment", | ||
"module": "commonjs", | ||
"moduleResolution": "Node", | ||
"noLib": true, | ||
"resolveJsonModule": true, | ||
"experimentalDecorators": true, | ||
"forceConsistentCasingInFileNames": true, | ||
"moduleDetection": "force", | ||
"strict": true, | ||
"target": "ESNext", | ||
"typeRoots": ["node_modules/@rbxts"], | ||
"declaration": false, | ||
|
||
// configurable | ||
"rootDir": "lib" | ||
} | ||
} |