Skip to content
This repository was archived by the owner on Jul 13, 2024. It is now read-only.

Commit 35340c9

Browse files
committed
Add banner into gitgraph.d.ts
1 parent 4cb5076 commit 35340c9

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

Gruntfile.js

+5
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ module.exports = function ( grunt ) {
4646
release: {
4747
src: [ "src/gitgraph.js" ],
4848
dest: "build/gitgraph.js"
49+
},
50+
tsd: {
51+
src: [ "dist/gitgraph.d.ts" ],
52+
dest: "dist/gitgraph.d.ts"
4953
}
5054
},
5155

@@ -233,6 +237,7 @@ module.exports = function ( grunt ) {
233237
grunt.registerTask( "tsd", [
234238
"doc:json",
235239
"parse:tsd:dist",
240+
"concat:tsd",
236241
"clean:jsdocjson"
237242
]);
238243

examples/index.ts

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/// <reference path="../dist/gitgraph.d.ts" />
2+
3+
const gGitGraph = new GitGraph({});
4+
const master:GitGraph.Branch = g.branch('toto');
5+
g.commit('coucou')

0 commit comments

Comments
 (0)