Skip to content

Commit

Permalink
Merge pull request #2516 from bobrippling/typescript/nrf
Browse files Browse the repository at this point in the history
typescript: fix `NRFSecurityStatus` & `setLCDOverlay`
  • Loading branch information
gfwilliams committed Jun 17, 2024
2 parents 962a461 + ea3321e commit 1ec70db
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion libs/banglejs/jswrap_bangle.c
Original file line number Diff line number Diff line change
Expand Up @@ -2412,7 +2412,7 @@ void jswrap_banglejs_setLCDOffset(int y) {
"setLCDOverlay(img: any, x: number, y: number): void;",
"setLCDOverlay(): void;",
"setLCDOverlay(img: any, x: number, y: number, options: { id : string, remove: () => void }): void;",
"setLCDOverlay(img: any, options: { id : string }}): void;"
"setLCDOverlay(img: any, options: { id : string }): void;"
]
}
Overlay an image or graphics instance on top of the contents of the graphics buffer.
Expand Down
8 changes: 5 additions & 3 deletions libs/bluetooth/jswrap_bluetooth.c
Original file line number Diff line number Diff line change
Expand Up @@ -3741,9 +3741,11 @@ void jswrap_ble_setSecurity(JsVar *options) {
/*TYPESCRIPT
type NRFSecurityStatus = {
advertising: boolean,
privacy?: false || {
mode: string,
addr_type: string,
privacy?: ShortBoolean | {
mode: "off"
} | {
mode: "device_privacy" | "network_privacy",
addr_type: "random_private_resolvable" | "random_private_non_resolvable",
addr_cycle_s: number,
},
} & (
Expand Down

0 comments on commit 1ec70db

Please sign in to comment.