still gets better
This commit is contained in:
@@ -97,7 +97,7 @@ export type FSStatus = SharedStatus & {
|
|||||||
empty: boolean
|
empty: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
export abstract class FSExtension extends Extension<FSStatus>{
|
export abstract class FSExtension<Status extends FSStatus> extends Extension<FSStatus>{
|
||||||
constructor(
|
constructor(
|
||||||
name: string,
|
name: string,
|
||||||
protected readonly prefix: string){
|
protected readonly prefix: string){
|
||||||
@@ -106,7 +106,7 @@ export abstract class FSExtension extends Extension<FSStatus>{
|
|||||||
mkdir(path.resolve(prefix, name))
|
mkdir(path.resolve(prefix, name))
|
||||||
}
|
}
|
||||||
|
|
||||||
public async status(): Promise<FSStatus>{
|
public async status(): Promise<Status | FSStatus>{
|
||||||
const installed = await this.isInstalled()
|
const installed = await this.isInstalled()
|
||||||
const outdated = await this.isOutdated()
|
const outdated = await this.isOutdated()
|
||||||
const exists = await this.exists()
|
const exists = await this.exists()
|
||||||
@@ -149,12 +149,10 @@ type NPMStatus = FSStatus & {
|
|||||||
|
|
||||||
export class NPMExtension extends FSExtension<NPMStatus>{
|
export class NPMExtension extends FSExtension<NPMStatus>{
|
||||||
|
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
name,
|
name: string,
|
||||||
public localPrefix,
|
prefix: string){
|
||||||
){
|
super(name, prefix)
|
||||||
super(name)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public async status(): Promise<NPMStatus> {
|
public async status(): Promise<NPMStatus> {
|
||||||
|
|||||||
Reference in New Issue
Block a user