Skip to content

Commit

Permalink
feat: writer
Browse files Browse the repository at this point in the history
Change-Id: I0002cc1361a440aab9075593e4884b278cba244a
  • Loading branch information
meixg committed Oct 25, 2018
1 parent 0461468 commit 3bed93b
Show file tree
Hide file tree
Showing 10 changed files with 7,722 additions and 1 deletion.
92 changes: 92 additions & 0 deletions package-lock.json

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

7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,10 @@
"url": "ssh://meixuguang@icode.baidu.com:8235/baidu/atom/ts2php"
},
"author": "meixuguang",
"license": "UNLICENSED"
"license": "UNLICENSED",
"dependencies": {
"@types/node": "^10.12.0",
"ts-node": "^7.0.1",
"typescript": "^3.1.3"
}
}
14 changes: 14 additions & 0 deletions sample/atomWiseUtils.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
interface tcLink {
type: string;
tcUrl: string;
sfUrl?: string;
options?: string;
log?: string;
}

declare namespace atomWiseUtils {
function makeTcLink(url: string, options?: any): tcLink;
let tplData: any;
}

export = atomWiseUtils;
5 changes: 5 additions & 0 deletions sample/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import {makeTcLink, tplData} from './atomWiseUtils';



tplData.src = makeTcLink(tplData.src);
Loading

0 comments on commit 3bed93b

Please sign in to comment.