Skip to content

Commit

Permalink
Ensure optional TypeScript context fields are marked appropriately. (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
zyro authored Aug 11, 2024
1 parent efabe7f commit ddbbba7
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 14 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ All notable changes to this project are documented below.
The format is based on [keep a changelog](http://keepachangelog.com) and this project uses [semantic versioning](http://semver.org).

## [Unreleased]
### Fixed
- Ensure optional TypeScript context fields are marked appropriately.

## [1.33.0] - 2024-07-27
### Added
Expand Down
28 changes: 14 additions & 14 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,20 @@ declare namespace nkruntime {
executionMode: string,
node: string,
version: string,
headers: {[key: string]: string[]},
queryParams: {[key: string]: string[]},
userId: string,
username: string,
vars: {[key: string]: string}
userSessionExp: number,
sessionId: string,
clientIp: string,
clientPort: string,
matchId: string,
matchNode: string,
matchLabel: string,
matchTickRate: number,
lang: string,
headers?: {[key: string]: string[]},
queryParams?: {[key: string]: string[]},
userId?: string,
username?: string,
vars?: {[key: string]: string}
userSessionExp?: number,
sessionId?: string,
clientIp?: string,
clientPort?: string,
matchId?: string,
matchNode?: string,
matchLabel?: string,
matchTickRate?: number,
lang?: string,
}

type ReadPermissionValues = 0 | 1 | 2;
Expand Down

0 comments on commit ddbbba7

Please sign in to comment.