-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yet another attempt to make tools happy
- Loading branch information
Showing
7 changed files
with
21 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -130,8 +130,7 @@ | |
"standard": { | ||
"ignore": [ | ||
"dist", | ||
"vendor", | ||
"**/interface.js" | ||
"vendor" | ||
] | ||
}, | ||
"directories": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,18 @@ | ||
// @ts-check | ||
|
||
// eslint-disable-next-line @typescript-eslint/no-unused-vars, no-unused-vars | ||
import * as API from './interface.js' | ||
import { coerce } from '../bytes.js' | ||
|
||
/** | ||
* @template T | ||
* @typedef {import('./interface').ByteView<T>} ByteView | ||
*/ | ||
|
||
export const name = 'raw' | ||
export const code = 0x55 | ||
|
||
/** | ||
* @param {Uint8Array} node | ||
* @returns {ByteView<Uint8Array>} | ||
* @returns {API.ByteView<Uint8Array>} | ||
*/ | ||
export const encode = (node) => coerce(node) | ||
export const encode = node => coerce(node) | ||
|
||
/** | ||
* @param {ByteView<Uint8Array>} data | ||
* @param {API.ByteView<Uint8Array>} data | ||
* @returns {Uint8Array} | ||
*/ | ||
export const decode = (data) => coerce(data) | ||
export const decode = data => coerce(data) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
// this is dummy module overlayed by interface.ts | ||
// just trying to stop eslint from campaining about | ||
// no named exports | ||
// eslint-disable-next-line no-void, no-shadow-restricted-names | ||
export const undefined = void 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters