Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

ProjectHelpers

import type { ProjectHelpers } from "https://garn.io/ts/v0.0.16/project.ts";
type ProjectHelpers = {
withDevTools<T extends ProjectData>(this: T, devTools: Array<Package>): T;
shell(this: ProjectData, script: string): Executable;
shell(
_s: TemplateStringsArray,
..._args: Array<NixStrLitInterpolatable>,
): Executable;
check(this: ProjectData, check: string): Check;
check(
_s: TemplateStringsArray,
..._args: Array<NixStrLitInterpolatable>,
): Check;
build(this: Project, build: string): Package;
build(
_s: TemplateStringsArray,
..._args: Array<NixStrLitInterpolatable>,
): Package;
add<T extends ProjectData, Additions>(this: T, fn: Plugin<Additions, T>): Omit<T, keyof Additions> & Additions;
addExecutable<T extends ProjectData, Name extends string>(
this: T,
name: Name,
executable: string,
): Omit<T, Name> & [n in Name]: Executable;
addExecutable<T extends ProjectData, Name extends string>(this: T, name: Name): (_s: TemplateStringsArray, ..._args: Array<NixStrLitInterpolatable>) => Omit<T, Name> & [n in Name]: Executable;
addCheck<T extends ProjectData, Name extends string>(
this: T,
name: Name,
check: string,
): Omit<T, Name> & [n in Name]: Check;
addCheck<T extends ProjectData, Name extends string>(this: T, name: Name): (_s: TemplateStringsArray, ..._args: Array<NixStrLitInterpolatable>) => Omit<T, Name> & [n in Name]: Check;
addPackage<T extends ProjectData, Name extends string>(
this: T,
name: Name,
pkg: string,
): Omit<T, Name> & [n in Name]: Package;
}
;

§Type

§
{
withDevTools<T extends ProjectData>(this: T, devTools: Array<Package>): T;
shell(this: ProjectData, script: string): Executable;
shell(
_s: TemplateStringsArray,
..._args: Array<NixStrLitInterpolatable>,
): Executable;
check(this: ProjectData, check: string): Check;
check(
_s: TemplateStringsArray,
..._args: Array<NixStrLitInterpolatable>,
): Check;
build(this: Project, build: string): Package;
build(
_s: TemplateStringsArray,
..._args: Array<NixStrLitInterpolatable>,
): Package;
add<T extends ProjectData, Additions>(this: T, fn: Plugin<Additions, T>): Omit<T, keyof Additions> & Additions;
addExecutable<T extends ProjectData, Name extends string>(
this: T,
name: Name,
executable: string,
): Omit<T, Name> & [n in Name]: Executable;
addExecutable<T extends ProjectData, Name extends string>(this: T, name: Name): (_s: TemplateStringsArray, ..._args: Array<NixStrLitInterpolatable>) => Omit<T, Name> & [n in Name]: Executable;
addCheck<T extends ProjectData, Name extends string>(
this: T,
name: Name,
check: string,
): Omit<T, Name> & [n in Name]: Check;
addCheck<T extends ProjectData, Name extends string>(this: T, name: Name): (_s: TemplateStringsArray, ..._args: Array<NixStrLitInterpolatable>) => Omit<T, Name> & [n in Name]: Check;
addPackage<T extends ProjectData, Name extends string>(
this: T,
name: Name,
pkg: string,
): Omit<T, Name> & [n in Name]: Package;
}
[src]