Skip to content

Commit

Permalink
Adding basic types (#181)
Browse files Browse the repository at this point in the history
* Adding basic types

* cleaning tsconfig

* also running tsc
  • Loading branch information
aasimkhan30 authored Nov 27, 2024
1 parent 72ace2d commit fb2b560
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ jobs:

- name: Install Dependencies
run: npm install

- name: Run tsc
run: npx tsc

- name: Generate release notes
run: |
Expand Down
4 changes: 4 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
declare module "azdataGraph" {
const azdataGraph: any;
export default azdataGraph;
}
25 changes: 23 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "azdataGraph",
"description": "azdataGraph is a derivative of mxGraph, which is a fully client side JavaScript diagramming library that uses SVG and HTML for rendering.",
"version": "0.0.68",
"version": "0.0.69",
"homepage": "https://github.com/microsoft/azdataGraph",
"author": "Microsoft",
"license": "Apache-2.0",
Expand All @@ -13,6 +13,7 @@
"url": "https://github.com/microsoft/azdataGraph/issues"
},
"main": "./dist/build.js",
"types": "index.d.ts",
"scripts": {
"prepare": "grunt build --base ./ --gruntfile etc/build/Gruntfile.js"
},
Expand All @@ -22,6 +23,7 @@
"grunt-contrib-copy": "^1.0.0",
"grunt-webpack": "^2.0.1",
"load-grunt-tasks": "^3.5.2",
"webpack": "^2.2.1"
"webpack": "^2.2.1",
"typescript": "^5.7.2"
}
}
15 changes: 15 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"compilerOptions": {
"target": "es2016",
"module": "commonjs",
"declaration": true,
"emitDeclarationOnly": true,
"outDir": "./dist",
"declarationDir": "./dist",
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"skipLibCheck": true
},
"include": ["index.d.ts"],
}

0 comments on commit fb2b560

Please sign in to comment.