@code0-tech/triangulum 0.6.0 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,7 +3,7 @@
3
3
  ${k(n)}
4
4
  type TargetType = ${t};
5
5
  const val: TargetType = {} as any;
6
- `;console.log(a);const c="index.ts",g=L(c,a),f=g.getSourceFile(c),u=g.languageService.getProgram().getTypeChecker();let m=1;const r=d=>{if(F.isVariableDeclaration(d)&&d.name.getText()==="val"){const o=u.getTypeAtLocation(d);o.getCallSignatures().length>0?m=4:u.isArrayType(o)?m=2:o.isStringLiteral()||o.isNumberLiteral()||(o.getFlags()&(F.TypeFlags.String|F.TypeFlags.Number|F.TypeFlags.Boolean|F.TypeFlags.EnumLiteral|F.TypeFlags.BigInt|F.TypeFlags.ESSymbol))!==0?m=0:o.isClassOrInterface()||(o.getFlags()&F.TypeFlags.Object)!==0?m=3:m=1}F.forEachChild(d,r)};return r(f),m},ie=`
6
+ `,c="index.ts",g=L(c,a),f=g.getSourceFile(c),u=g.languageService.getProgram().getTypeChecker();let m=1;const r=d=>{if(F.isVariableDeclaration(d)&&d.name.getText()==="val"){const o=u.getTypeAtLocation(d);o.getCallSignatures().length>0?m=4:u.isArrayType(o)?m=2:o.isStringLiteral()||o.isNumberLiteral()||(o.getFlags()&(F.TypeFlags.String|F.TypeFlags.Number|F.TypeFlags.Boolean|F.TypeFlags.EnumLiteral|F.TypeFlags.BigInt|F.TypeFlags.ESSymbol))!==0?m=0:o.isClassOrInterface()||(o.getFlags()&F.TypeFlags.Object)!==0?m=3:m=1}F.forEachChild(d,r)};return r(f),m},ie=`
7
7
  interface Array<T> {
8
8
  [n: number]: T;
9
9
  length: number;
@@ -242,9 +242,7 @@ const q = (t, n) => {
242
242
  ${R(n)}
243
243
  type TargetType = ${t};
244
244
  const val: TargetType = {} as any;
245
- `;
246
- console.log(a);
247
- const c = "index.ts", g = L(c, a), f = g.getSourceFile(c), u = g.languageService.getProgram().getTypeChecker();
245
+ `, c = "index.ts", g = L(c, a), f = g.getSourceFile(c), u = g.languageService.getProgram().getTypeChecker();
248
246
  let m = 1;
249
247
  const r = (d) => {
250
248
  if (F.isVariableDeclaration(d) && d.name.getText() === "val") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@code0-tech/triangulum",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "description": "",
5
5
  "homepage": "https://github.com/code0-tech/triangulum#readme",
6
6
  "bugs": {