Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/workflows/types.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: TypeScript types

on:
push:
branches: [master, main]
paths:
- 'ts/index.d.ts'
- 'index.js'
- 'ts/typings-check.ts'
- 'ts/tsconfig.json'
- '.github/workflows/types.yml'
pull_request:
types: [opened, synchronize, reopened]

permissions:
contents: read

jobs:
typecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 24
- name: Install type-check dependencies
run: npm install --no-save typescript @types/node
- name: Check index.d.ts
run: npx tsc --project ts/tsconfig.json
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "2.1.0",
"description": "A DNS Server and Client Implementation in Pure JavaScript with no dependencies.",
"main": "index.js",
"types": "ts/index.d.ts",
"scripts": {
"test": "node --test",
"test:coverage": "node --test --experimental-test-coverage",
Expand Down
Loading