Changeset - cc34e9b8bb97
[Not reviewed]
default
0 4 0
drewp@bigasterisk.com - 20 months ago 2023-05-18 01:53:58
drewp@bigasterisk.com
workaround sylvester module errors from tsc
4 files changed with 12 insertions and 13 deletions:
0 comments (0 inline, 0 general)
light9/web/lib/sylvester.d.ts
Show inline comments
 
// local fixes; the DefinitelyTyped one had "is not a module" errors
 

	
 

	
 
// Type definitions for sylvester 0.1.3
 
// Project: https://github.com/jcoglan/sylvester
 
// Definitions by: Stephane Alie <https://github.com/StephaneAlie>
 
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
 

	
 
// === Sylvester ===
 
// Vector and Matrix mathematics modules for JavaScript
 
// Copyright (c) 2007 James Coglan
 

	
 
declare module Sylvester {
 
export declare module Sylvester {
 
    interface VectorStatic {
 
        /**
 
         * Constructor function.
 
         */
 
        create(elements: Vector|Array<number>): Vector;
 

	
package.json
Show inline comments
 
@@ -14,13 +14,12 @@
 
    "@types/async": "^3.2.20",
 
    "@types/d3": "^7.4.0",
 
    "@types/debug": "^4.1.7",
 
    "@types/n3": "^1.10.4",
 
    "@types/node": "^20.2.0",
 
    "@types/reconnectingwebsocket": "^1.0.7",
 
    "@types/sylvester": "^0.1.8",
 
    "@types/underscore": "^1.11.4",
 
    "async": "^3.2.4",
 
    "d3": "^7.8.4",
 
    "debug": "^4.3.4",
 
    "knockout": "^3.5.1",
 
    "lit": "^2.7.4",
pnpm-lock.yaml
Show inline comments
 
@@ -6,13 +6,12 @@ specifiers:
 
  '@types/async': ^3.2.20
 
  '@types/d3': ^7.4.0
 
  '@types/debug': ^4.1.7
 
  '@types/n3': ^1.10.4
 
  '@types/node': ^20.2.0
 
  '@types/reconnectingwebsocket': ^1.0.7
 
  '@types/sylvester': ^0.1.8
 
  '@types/underscore': ^1.11.4
 
  async: ^3.2.4
 
  d3: ^7.8.4
 
  debug: ^4.3.4
 
  knockout: ^3.5.1
 
  lit: ^2.7.4
 
@@ -31,13 +30,12 @@ dependencies:
 
  '@types/async': 3.2.20
 
  '@types/d3': 7.4.0
 
  '@types/debug': 4.1.7
 
  '@types/n3': 1.10.4
 
  '@types/node': 20.2.0
 
  '@types/reconnectingwebsocket': 1.0.7
 
  '@types/sylvester': 0.1.8
 
  '@types/underscore': 1.11.4
 
  async: 3.2.4
 
  d3: 7.8.4
 
  debug: 4.3.4
 
  knockout: 3.5.1
 
  lit: 2.7.4
 
@@ -623,16 +621,12 @@ packages:
 
    dev: false
 

	
 
  /@types/reconnectingwebsocket/1.0.7:
 
    resolution: {integrity: sha512-17pnIZsGi9P8YNp7c0ueY2WEauSxDivuFeGuMuPPJMA3qk34CnFgBHGqkxgun3HUifEuwNr8cf+9rU7vSd8i5g==}
 
    dev: false
 

	
 
  /@types/sylvester/0.1.8:
 
    resolution: {integrity: sha512-x1bzR4PCxvv1/9iPrbdQ15gWgP8Tp8EPjO4VLjhMijepB44BzJ/XvJavoPViSiHxlBX6NgzRgO0H+qa68lJFGA==}
 
    dev: false
 

	
 
  /@types/trusted-types/2.0.3:
 
    resolution: {integrity: sha512-NfQ4gyz38SL8sDNrSixxU2Os1a5xcdFxipAFxYEuLUlvU2uDwS4NUpsImcf1//SlWItCVMMLiylsxbmNMToV/g==}
 
    dev: false
 

	
 
  /@types/underscore/1.11.4:
 
    resolution: {integrity: sha512-uO4CD2ELOjw8tasUrAhvnn2W4A0ZECOvMjCivJr4gA9pGgjv+qxKWY9GLTMVEK8ej85BxQOocUyE7hImmSQYcg==}
 
@@ -1123,13 +1117,13 @@ packages:
 
  /source-map-js/1.0.2:
 
    resolution: {integrity: sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==}
 
    engines: {node: '>=0.10.0'}
 
    dev: false
 

	
 
  /sylvester/0.0.21:
 
    resolution: {integrity: sha1-KYexzivS84sNzio0OIiEv6RADqc=}
 
    resolution: {integrity: sha512-yUT0ukFkFEt4nb+NY+n2ag51aS/u9UHXoZw+A4jgD77/jzZsBoSDHuqysrVCBC4CYR4TYvUJq54ONpXgDBH8tA==}
 
    engines: {node: '>=0.2.6'}
 
    dev: false
 

	
 
  /tabbable/5.3.3:
 
    resolution: {integrity: sha512-QD9qKY3StfbZqWOPLp0++pOrAVb/HbUi5xCc8cUo4XjP19808oaMiDzn0leBY5mCespIBM0CIZePzZjgzR83kA==}
 
    dev: false
tsconfig.json
Show inline comments
 
@@ -40,15 +40,17 @@
 
    // "noImplicitReturns": true,                   /* Report error when not all code paths in function return a value. */
 
    // "noFallthroughCasesInSwitch": true,          /* Report errors for fallthrough cases in switch statement. */
 
    // "noUncheckedIndexedAccess": true,            /* Include 'undefined' in index signature results */
 
    // "noPropertyAccessFromIndexSignature": true,  /* Require undeclared properties from index signatures to use element accesses. */
 

	
 
    /* Module Resolution Options */
 
    "moduleResolution": "node",                  /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
 
    // "baseUrl": "./",                             /* Base directory to resolve non-absolute module names. */
 
    // "paths": {},                                 /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
 
    "moduleResolution": "node"                      /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */,
 
    "baseUrl": "./"                                 /* Base directory to resolve non-absolute module names. */,
 
    "paths": {                                      /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
 
      "sylvester": ["light9/web/lib/sylvester.d.ts"]
 
    },
 
    // "rootDirs": [],                              /* List of root folders whose combined content represents the structure of the project at runtime. */
 
    // "typeRoots": ["/my/proj/light9/light9/web/homepage"],                             /* List of folders to include type definitions from. */
 
    // "types": [],                                 /* Type declaration files to be included in compilation. */
 
    // "allowSyntheticDefaultImports": true,        /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
 
    "esModuleInterop": true,                        /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
 
    // "preserveSymlinks": true,                    /* Do not resolve the real path of symlinks. */
 
@@ -63,9 +65,10 @@
 
    /* Experimental Options */
 
    "experimentalDecorators": true,              /* Enables experimental support for ES7 decorators. */
 
    // "emitDecoratorMetadata": true,               /* Enables experimental support for emitting type metadata for decorators. */
 

	
 
    /* Advanced Options */
 
    "skipLibCheck": true,                           /* Skip type checking of declaration files. */
 
    "forceConsistentCasingInFileNames": true        /* Disallow inconsistently-cased references to the same file. */
 
    "forceConsistentCasingInFileNames": true,       /* Disallow inconsistently-cased references to the same file. */
 
    "useDefineForClassFields": false
 
  }
 
}
0 comments (0 inline, 0 general)