Move the experiment into src/plugins and src/experiment
This commit is contained in:
parent
b9cfe706fc
commit
aa044a54e7
@ -5,8 +5,8 @@
|
||||
main: 'index.ts',
|
||||
scripts: {
|
||||
'build-and-run': 'ttsc -b && node build',
|
||||
'experiment-infer': 'tsc plugins/infer.ts && node plugins/infer.js ./src/generic/arithmetic.ts',
|
||||
'experiment-infer-direct': 'tsc plugins/infer.ts && node plugins/infer.js ./src/generic/arithmeticDirect.ts',
|
||||
'experiment-infer': 'ttsc -b && node build/plugins/infer.js ./src/generic/arithmetic.ts',
|
||||
'experiment-infer-direct': 'ttsc -b && node build/plugins/infer.js ./src/experiment/arithmeticInfer.ts',
|
||||
test: 'echo "Error: no test specified" && exit 1',
|
||||
},
|
||||
keywords: [
|
||||
|
1
plugins/.gitignore
vendored
1
plugins/.gitignore
vendored
@ -1 +0,0 @@
|
||||
*.js
|
@ -1,4 +1,4 @@
|
||||
import {infer} from './infer'
|
||||
import {infer} from '../generic/infer'
|
||||
|
||||
export const square = infer(<T>(dep: {
|
||||
multiply: (a: number, b: number) => number,
|
@ -24,6 +24,7 @@ import { inspect } from 'util'
|
||||
*
|
||||
* - https://github.com/microsoft/TypeScript/wiki/Writing-a-Language-Service-Plugin
|
||||
* - https://github.com/Microsoft/TypeScript/wiki/Using-the-Compiler-API
|
||||
* - https://github.com/Microsoft/TypeScript/wiki/Using-the-Compiler-API#using-the-type-checker
|
||||
* - https://github.com/Microsoft/TypeScript/wiki/Using-the-Language-Service-API
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user