-
Notifications
You must be signed in to change notification settings - Fork 222
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: have ESLint manage our JSDocs #1746
Changes from all commits
4891aaa
182bd92
4df5f01
31f4b07
8f415a0
6ee9231
9d00950
6a9342b
01048eb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
/* global harden */ | ||
// @ts-check | ||
|
||
import makeStore from '@agoric/store'; | ||
|
||
/** | ||
* @template T | ||
* @typedef {Object} Device | ||
* @typedef {'Device' & { __deviceType__: T }} Device | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why the double underbars? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not strictly necessary, just to remind people not to try actually using |
||
*/ | ||
|
||
/** | ||
|
@@ -25,6 +24,7 @@ import makeStore from '@agoric/store'; | |
* @property {(srcID: string, handler: BridgeHandler) => void} unregister | ||
*/ | ||
|
||
/* eslint-disable jsdoc/valid-types */ | ||
/** | ||
* Create a handler that demuxes/muxes the bridge device by its first argument. | ||
* | ||
|
@@ -33,6 +33,7 @@ import makeStore from '@agoric/store'; | |
* @param {Device<BridgeDevice>} bridgeDevice The bridge to manage | ||
* @returns {BridgeManager} admin facet for this handler | ||
*/ | ||
/* eslint-enable jsdoc/valid-types */ | ||
export function makeBridgeManager(E, D, bridgeDevice) { | ||
/** | ||
* @type {import('@agoric/store').Store<string, BridgeHandler>} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
/* global harden */ | ||
|
||
export default function makeScratchPad() { | ||
const map = new Map(); | ||
async function get(idP) { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The types below failed the linter, mostly due to the incomplete implementation of JSDoc Typescript linting described in #1751.