Skip to content

Commit

Permalink
Fix tsc
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdcolin committed Aug 10, 2021
1 parent 14f7690 commit b5c5ba0
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 10 deletions.
1 change: 1 addition & 0 deletions packages/core/rpc/coreRpcMethods.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ export class CoreGetFeatures extends RpcMethodType {
region: Region
adapterConfig: {}
signal?: RemoteAbortSignal
// eslint-disable-next-line @typescript-eslint/no-explicit-any
opts?: any
},
rpcDriverClassName: string,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ export default class extends BaseFeatureDataAdapter implements SequenceAdapter {
this.fasta = new IndexedFasta(fastaOpts)
}

public getRefNames(opts: BaseOptions) {
public getRefNames(opts?: BaseOptions) {
return this.fasta.getSequenceNames(opts)
}

public async getRegions(opts: BaseOptions): Promise<NoAssemblyRegion[]> {
public async getRegions(opts?: BaseOptions): Promise<NoAssemblyRegion[]> {
const seqSizes = await this.fasta.getSequenceSizes(opts)
return Object.keys(seqSizes).map(
(refName): NoAssemblyRegion => ({
Expand All @@ -65,7 +65,7 @@ export default class extends BaseFeatureDataAdapter implements SequenceAdapter {
* @param param -
* @returns Observable of Feature objects in the region
*/
public getFeatures(region: NoAssemblyRegion, opts: BaseOptions) {
public getFeatures(region: NoAssemblyRegion, opts?: BaseOptions) {
const { refName, start, end } = region
return ObservableCreate<Feature>(async observer => {
const size = await this.fasta.getSequenceSize(refName, opts)
Expand Down
36 changes: 29 additions & 7 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3047,6 +3047,21 @@
dependencies:
"@librpc/ee" "1.0.4"

"@mapbox/node-pre-gyp@^1.0.0":
version "1.0.5"
resolved "https://registry.yarnpkg.com/@mapbox/node-pre-gyp/-/node-pre-gyp-1.0.5.tgz#2a0b32fcb416fb3f2250fd24cb2a81421a4f5950"
integrity sha512-4srsKPXWlIxp5Vbqz5uLfBN+du2fJChBoYn/f2h991WLdk7jUvcSk/McVLSv/X+xQIPI8eGD5GjrnygdyHnhPA==
dependencies:
detect-libc "^1.0.3"
https-proxy-agent "^5.0.0"
make-dir "^3.1.0"
node-fetch "^2.6.1"
nopt "^5.0.0"
npmlog "^4.1.2"
rimraf "^3.0.2"
semver "^7.3.4"
tar "^6.1.0"

"@material-ui/core@^4.12.2":
version "4.12.2"
resolved "https://registry.yarnpkg.com/@material-ui/core/-/core-4.12.2.tgz#59a8b19f16b8c218d912f37f5ae70473c3c82c73"
Expand Down Expand Up @@ -9172,11 +9187,6 @@ dotenv@8.2.0, dotenv@^8.0.0, dotenv@^8.2.0:
resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-8.2.0.tgz#97e619259ada750eea3e4ea3e26bceea5424b16a"
integrity sha512-8sJ78ElpbDJBHNeBzUbUVLsqKdccaa/BXF1uPTw3GrvQTBgrQrtObr2mUrE38vzYd8cEv+m/JBfDLioYcfXoaw==

dotenv@^10.0.0:
version "10.0.0"
resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-10.0.0.tgz#3d4227b8fb95f81096cdd2b66653fb2c7085ba81"
integrity sha512-rlBi9d8jpv9Sf1klPjNfFAuWDjKLwTIJJ/VxtoTwIR6hnZxcEOQCZg2oIL3MWBYw5GpUDKOEnND7LXTbIpQ03Q==

dotenv@^6.2.0:
version "6.2.0"
resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-6.2.0.tgz#941c0410535d942c8becf28d3f357dbd9d476064"
Expand Down Expand Up @@ -15795,7 +15805,7 @@ npm-run-path@^4.0.0:
dependencies:
path-key "^3.0.0"

npmlog@^4.0.2, npmlog@^4.1.2:
npmlog@^4.1.2:
version "4.1.2"
resolved "https://registry.yarnpkg.com/npmlog/-/npmlog-4.1.2.tgz#08a7f2a8bf734604779a9efa4ad5cc717abb954b"
integrity sha512-2uUqazuKlTaSI/dC8AzicUck7+IrEaOnN/e0jd3Xtt1KcGpwx30v50mL7oPyr/h9bL3E4aZccVwpwP+5W9Vjkg==
Expand Down Expand Up @@ -20469,7 +20479,7 @@ tar-stream@^2.0.0:
inherits "^2.0.3"
readable-stream "^3.1.1"

tar@^4, tar@^4.4.10, tar@^4.4.12, tar@^4.4.8:
tar@^4.4.10, tar@^4.4.12, tar@^4.4.8:
version "4.4.13"
resolved "https://registry.yarnpkg.com/tar/-/tar-4.4.13.tgz#43b364bc52888d555298637b10d60790254ab525"
integrity sha512-w2VwSrBoHa5BsSyH+KxEqeQBAllHhccyMFVHtGtdMpF4W7IRWfZjFiQceJPChOeTsSDVUpER2T8FA93pr0L+QA==
Expand All @@ -20494,6 +20504,18 @@ tar@^6.0.0, tar@^6.0.2:
mkdirp "^1.0.3"
yallist "^4.0.0"

tar@^6.1.0:
version "6.1.7"
resolved "https://registry.yarnpkg.com/tar/-/tar-6.1.7.tgz#c566d1107d38b09e92983a68db5534fc7f6cab42"
integrity sha512-PBoRkOJU0X3lejJ8GaRCsobjXTgFofRDSPdSUhRSdlwJfifRlQBwGXitDItdGFu0/h0XDMCkig0RN1iT7DBxhA==
dependencies:
chownr "^2.0.0"
fs-minipass "^2.0.0"
minipass "^3.0.0"
minizlib "^2.1.1"
mkdirp "^1.0.3"
yallist "^4.0.0"

telejson@^5.3.2:
version "5.3.3"
resolved "https://registry.yarnpkg.com/telejson/-/telejson-5.3.3.tgz#fa8ca84543e336576d8734123876a9f02bf41d2e"
Expand Down

0 comments on commit b5c5ba0

Please sign in to comment.