Skip to content

Commit

Permalink
fix declare error
Browse files Browse the repository at this point in the history
  • Loading branch information
imzlh committed Jul 28, 2024
1 parent 3a7911a commit 4061fc1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
node-version: ${{ matrix.node-version }}
- run: npm install -g typescript
- run: git clone https://github.com/nginx/njs.git && mv njs/ts/ ../type
- run: tsc --target ES2022 --lib ES6 ddns.ts
- run: tsc --target ES2022 --lib ES2022 ddns.ts
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
Expand Down
3 changes: 2 additions & 1 deletion ddns.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/// <reference path="../type/index.d.ts" />
/// <reference path="../type/ngx_http_js_module.d.ts" />
/// <reference path="../type/ngx_core.d.ts" />

/**
* AliDDNS njs interface
Expand Down
3 changes: 3 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
"compilerOptions": {
"target": "es5",
"module": "ES2022",
"types": [
"./type"
],
"lib": [
"ES5",
// "ES2015.Collection",
Expand Down

0 comments on commit 4061fc1

Please sign in to comment.