gps-global-types 1.0.24 → 1.0.26

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.
package/index.tsx CHANGED
@@ -1,5 +1,5 @@
1
- export * from './global.types.js'
2
- export * from './link.types.js'
3
- export * from './mst.types.js'
4
- export * from './pie.types.js'
5
- export * from './isolate.types.js'
1
+ export * from './global.types.tsx'
2
+ export * from './link.types.tsx'
3
+ export * from './mst.types.tsx'
4
+ export * from './pie.types.tsx'
5
+ export * from './isolate.types.tsx'
package/link.types.tsx CHANGED
@@ -1,23 +1,10 @@
1
1
  import type { BaseType, Selection, SimulationLinkDatum, SimulationNodeDatum } from 'd3';
2
2
  import type { mstGlobalTypes } from './mst.types.tsx';
3
- import type { NodeType } from './pie.types.js';
4
- interface coords {
5
- x: number,
6
- y: number
7
- }
3
+ import type { NodeType } from './pie.types.tsx';
4
+
8
5
  export interface EdgeType extends SimulationLinkDatum<NodeType> { // extends SimulationLinkDatum<NodeType>} anything not defined here was added by d3 (or i fucked up)
9
6
  source: NodeType // node _id edge to
10
7
  target: NodeType // node _id edge from
11
8
  value: number // distance between source and target
12
9
  }
13
10
 
14
- export type gLinkType = Selection<SVGGElement, EdgeType, BaseType, unknown>
15
- export interface LinkType {
16
- g: gLinkType
17
- }
18
-
19
- export interface LinkProps {
20
- data: EdgeType[],
21
- force: mstGlobalTypes
22
- }
23
- export type svgSelection = Selection<BaseType, gLinkType, Element, LinkType>; //Selection<Element,LinkType,Element,any>
package/mst.types.tsx CHANGED
@@ -1,8 +1,8 @@
1
- import type { ClusterFields } from "./cluster.types.js";
2
- import type { armordAccessionNumber, Color, mrsnId, ObjectId, RegexMatchedString } from "./global.types.js";
3
- import type { IsolateFields } from "./isolate.types.js";
4
- import type { EdgeType } from "./link.types.js";
5
- import type { NodeType } from "./pie.types.js";
1
+ import type { ClusterFields } from "./cluster.types.tsx";
2
+ import type { armordAccessionNumber, Color, mrsnId, ObjectId, RegexMatchedString } from "./global.types.tsx";
3
+ import type { IsolateFields } from "./isolate.types.tsx";
4
+ import type { EdgeType } from "./link.types.tsx";
5
+ import type { NodeType } from "./pie.types.tsx";
6
6
 
7
7
  export interface mstGlobalTypes {
8
8
  //form values
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gps-global-types",
3
- "version": "1.0.24",
3
+ "version": "1.0.26",
4
4
  "description": "types shared between front-end and back-end",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -16,5 +16,10 @@
16
16
  "devDependencies": {
17
17
  "@types/d3": "^7.4.3",
18
18
  "typescript": "^5.9.2"
19
- }
19
+ },
20
+ "browserList": [
21
+ ">0.2%",
22
+ "not dead",
23
+ "not op_mini all"
24
+ ]
20
25
  }
package/tsconfig.json CHANGED
@@ -4,7 +4,6 @@
4
4
  // File Layout
5
5
  // "rootDir": "./src",
6
6
  // "outDir": "./dist",
7
-
8
7
  // Environment Settings
9
8
  // See also https://aka.ms/tsconfig/module
10
9
  "module": "nodenext",
@@ -14,16 +13,15 @@
14
13
  // "lib": ["esnext"],
15
14
  // "types": ["node"],
16
15
  // and npm install -D @types/node
17
-
18
16
  // Other Outputs
19
17
  "sourceMap": true,
20
18
  "declaration": true,
21
19
  "declarationMap": true,
22
-
20
+ "emitDeclarationOnly": true,
21
+ "allowImportingTsExtensions": true,
23
22
  // Stricter Typechecking Options
24
23
  "noUncheckedIndexedAccess": true,
25
24
  "exactOptionalPropertyTypes": true,
26
-
27
25
  // Style Options
28
26
  // "noImplicitReturns": true,
29
27
  // "noImplicitOverride": true,
@@ -31,7 +29,6 @@
31
29
  // "noUnusedParameters": true,
32
30
  // "noFallthroughCasesInSwitch": true,
33
31
  // "noPropertyAccessFromIndexSignature": true,
34
-
35
32
  // Recommended Options
36
33
  "strict": true,
37
34
  "jsx": "react-jsx",
@@ -41,4 +38,4 @@
41
38
  "moduleDetection": "force",
42
39
  "skipLibCheck": true,
43
40
  }
44
- }
41
+ }