type
stringclasses
7 values
content
stringlengths
4
9.55k
repo
stringlengths
7
96
path
stringlengths
4
178
language
stringclasses
1 value
ClassDeclaration
/** * This component is responsible for setting the validity of the name field when creating a new application. * It does NOT render the error/warning messages to the screen - that is handled by the * applicationNameValidationMessages component. */ class ValidateApplicationNameController implements IController { public model: INgModelController; public cloudProviders: string[]; public $attrs: IValidateNameAttrs; public $scope: IScope; constructor(private $q: IQService) {} public initialize() { this.model.$asyncValidators['validateApplicationName'] = (value: string) => { const deferred: IDeferred<boolean> = this.$q.defer(); ApplicationNameValidator.validate(value, this.cloudProviders).then((result: IApplicationNameValidationResult) => { if (result.errors.length) { deferred.reject(); } else { deferred.resolve(); } }); return deferred.promise; }; this.$scope.$watch(this.$attrs.cloudProviders, () => this.model.$validate()); } }
Click2Cloud-neutron/deck
app/scripts/modules/core/src/application/modal/validation/validateApplicationName.directive.ts
TypeScript
InterfaceDeclaration
interface IValidateNameAttrs extends IAttributes { cloudProviders: string; }
Click2Cloud-neutron/deck
app/scripts/modules/core/src/application/modal/validation/validateApplicationName.directive.ts
TypeScript
MethodDeclaration
public initialize() { this.model.$asyncValidators['validateApplicationName'] = (value: string) => { const deferred: IDeferred<boolean> = this.$q.defer(); ApplicationNameValidator.validate(value, this.cloudProviders).then((result: IApplicationNameValidationResult) => { if (result.errors.length) { deferred.reject(); } else { deferred.resolve(); } }); return deferred.promise; }; this.$scope.$watch(this.$attrs.cloudProviders, () => this.model.$validate()); }
Click2Cloud-neutron/deck
app/scripts/modules/core/src/application/modal/validation/validateApplicationName.directive.ts
TypeScript
ArrowFunction
(props: Props) => { const backButton = props.onBack && <Kb.BackButton onClick={props.onBack} style={styles.backButton} /> // Only show caret/unread badge when we have a switcher, // i.e. when isMobile is true. const caret = Styles.isMobile && ( <Kb.Icon key="icon" type="iconfont-caret-down" style={styles.caret} sizeType="Tiny" />
lmlsna/client
shared/wallets/wallet/header/index.tsx
TypeScript
ArrowFunction
() => ({ backButton: { left: 0, position: 'absolute', }, caret: { marginLeft: Styles.globalMargins.xtiny, width: 10, }, container: { borderBottomColor: Styles.globalColors.black_10, borderBottomWidth: 1, borderStyle: 'solid', flexShrink: 0, }, gear: { position: 'relative', top: 1, }, settingsButton: { minWidth: undefined, paddingLeft: Styles.globalMargins.tiny, paddingRight: Styles.globalMargins.tiny, }, smallAccountID: { marginLeft: Styles.globalMargins.tiny, marginRight: Styles.globalMargins.tiny, textAlign: 'center', }, spinner: { height: Styles.globalMargins.small, width: Styles.globalMargins.small, }, topContainer: { position: 'relative', }, unread: { backgroundColor: Styles.globalColors.orange, borderRadius: 6, flexShrink: 0, height: Styles.globalMargins.tiny, marginLeft: -Styles.globalMargins.tiny, marginTop: -Styles.globalMargins.xtiny, width: Styles.globalMargins.tiny, }, } as const)
lmlsna/client
shared/wallets/wallet/header/index.tsx
TypeScript
TypeAliasDeclaration
type Props = { accountID: Types.AccountID airdropSelected: boolean isDefaultWallet: boolean keybaseUser: string onBack: (() => void) | null onBuy: () => void onReceive: () => void onSettings: () => void thisDeviceIsLockedOut: boolean unreadPayments: boolean walletName: string | null }
lmlsna/client
shared/wallets/wallet/header/index.tsx
TypeScript
MethodDeclaration
account<
lmlsna/client
shared/wallets/wallet/header/index.tsx
TypeScript
TypeAliasDeclaration
type BackendOrganisasjon = { name: string; type: string; parentOrganizationNumber: string; organizationForm: string; organizationNumber: string; socialSecurityNumber?: string; status: string; };
navikt/helse-arbeidsgiver-felles-frontend
src/api/arbeidsgiver/BackendOrganisasjon.ts
TypeScript
FunctionDeclaration
export default async function handle(req: NextApiRequest, res: NextApiResponse) { const { STRIPE_SUCCESS_URL, STRIPE_CANCEL_URL } = process.env if (!STRIPE_SUCCESS_URL || !STRIPE_CANCEL_URL) { throw new Error('Stripe URLs are missing') } if (req.method === 'POST') { const session = await getSession({ req }) const user = await fauna.query<User>( q.Get(q.Match(q.Index('user_by_email'), q.Casefold(session?.user?.email!))) ) let customerId = user.data.stripe_customer_id if (!customerId) { const stripeCustomer = await stripe.customers.create({ email: session?.user?.email! }) await fauna.query( q.Update(q.Ref(q.Collection('users'), user.ref.id), { data: { stripe_customer_id: stripeCustomer.id } }) ) customerId = stripeCustomer.id } const stripeCheckoutSession = await stripe.checkout.sessions.create({ customer: customerId, payment_method_types: ['card'], billing_address_collection: 'required', line_items: [ { price: 'price_1JExGQHbS7qlKi89aBl3mfAH', quantity: 1 } ], mode: 'subscription', allow_promotion_codes: true, success_url: STRIPE_SUCCESS_URL, cancel_url: STRIPE_CANCEL_URL }) return res.status(200).json({ sessionId: stripeCheckoutSession.id }) } else { res.setHeader('Allow', 'POST') res.status(405).end('Method not allowed') } }
dsoaress/react-news
src/pages/api/subscribe.ts
TypeScript
TypeAliasDeclaration
type User = { ref: { id: string } data: { stripe_customer_id: string } }
dsoaress/react-news
src/pages/api/subscribe.ts
TypeScript
FunctionDeclaration
export default function HomePage({ data }) { const siteMetadata = data.site.siteMetadata; return ( <> <Helmet> <title>{siteMetadata.title}</title> <meta property="og:url" content={siteMetadata.url} /> <meta property="og:title" content={siteMetadata.title} /> <meta property="og:description" content={data.homeYaml.heroBanner.tagLine} /> <meta name="theme-color" content={colors.amethyst} /> <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.6.0/slick.min.css" /> </Helmet> <HeroBanner data={data.homeYaml.heroBanner} /> <Badges /> <ValueProps data={data.homeYaml.valueProps} images={data.valuePropsImages} /> <div> <GroupedSection> <Examples data={data.codeExamples} /> </GroupedSection> <GroupedSection> <Installation data={data.codeInstallation} /> </GroupedSection> <GroupedSection> <Community data={data.homeYaml.community} images={data.communityImages} /> </GroupedSection> <GroupedSection> <Support data={data.support} /> </GroupedSection> </div> <Extensions data={data.homeYaml.extensions} /> <div> <GroupedSection> <Testimonials data={data.homeYaml.testimonials} /> </GroupedSection> <GroupedSection> <Companies data={data.homeYaml.companies} images={data.companiesImages} /> </GroupedSection> <GroupedSection> <Authors data={data.homeYaml.authors} images={data.authorsImages} /> </GroupedSection> </div> <Footer /> </> ); }
nameko/nameko.io
src/pages/index.tsx
TypeScript
ArrowFunction
({ year, degree, addition }) => { return ( <Layout> <Head> <meta property="og:description" content="Variants åpne lønnskalkulator. Her kan du se lønnsnivået vi har og se hvilken lønn du kan få hos oss basert på din utdanning og utdanningsår." /> <meta name="description" content="Variants åpne lønnskalkulator. Her kan du se lønnsnivået vi har og se hvilken lønn du kan få hos oss basert på din utdanning og utdanningsår." /> <meta property="og:url" content="https://www.variant.no/kalkulator" key="og:url" /> <meta property="og:image" content="https://www.variant.no/images/pay.jpg" key="og:image" /> </Head> <div className={style.wrapper}> <Calculator year={year} degree={degree} addition={addition} /> </div> </Layout>
varianter/variant.no
src/salary-calculator/index.tsx
TypeScript
ArrowFunction
(ctx) => { return { year: parseInt((ctx.query.year as string) ?? '2007'), degree: (ctx.query.degree as Degree) ?? 'masters', addition: parseInt((ctx.query.addition as string) ?? '0'), }; }
varianter/variant.no
src/salary-calculator/index.tsx
TypeScript
ArrowFunction
(props: Props) => { const { selectedYear, setSelectedYear, degree, setDegree, minYear, maxYear, salary, incrementYear, decrementYear, } = useCalculatorData(props.year, props.degree, props.addition); return ( <div className={style.container}> <div className={style.calculatorContainer}> <div className={style.topSvgContainer}> <svg width="100%" height="100%" viewBox="0 0 600 600"> <g transform="translate(300, 300)"> <path className="top-path" d="M136.6,-181.3C183.8,-153.7,233.59999999999997,-122.9,248.4,-80.1C263.1,-37.3,242.8,17.5,201.7,41.2C160.5,64.9,98.5,57.5,61.400000000000006,61.5C24.299999999999997,65.4,12.100000000000001,80.7,-21.5,110.2C-55.1,139.8,-110.1,183.6,-132.6,174.9C-155.1,166.2,-145.1,105,-151.3,56.2C-157.6,7.3,-180.1,-29.3,-167.1,-49.6C-154.1,-70,-105.5,-74.3,-71.8,-106.3C-38,-138.3,-19,-198.2,12.8,-215.8C44.7,-233.5,89.3,-209,136.6,-181.3Z" fill={'rgba(204, 52, 112, 1)'} stroke="none" strokeWidth="0" ></path> </g> </svg> </div> <div className={style.svgContainer}> <svg width="100%" height="100%" viewBox="0 0 500 500"> <g transform="translate(250, 250)"> <path className="path" id="clippingPath" d="M114,-157.7C152.3,-129,191.3,-101.9,194.1,-68.8C196.9,-35.7,163.6,3.3,137.8,33C111.9,62.7,93.6,83.1,71.9,99.6C50.2,116,25.1,128.5,-9.200000000000001,141.2C-43.5,153.9,-87,166.7,-107.4,149.9C-127.9,133,-125.3,86.4,-148.6,41.9C-171.8,-2.6999999999999993,-221,-45.2,-224.5,-84.9C-228.1,-124.6,-186,-161.4,-141,-187.9C-96,-214.5,-48,-230.7,-5.1,-223.7C37.8,-216.7,75.6,-186.4,114,-157.7Z" fill="#03dac6" stroke="none" strokeWidth="0" ></path> </g> </svg> </div> <fieldset className={style.contentContainer}> <h2 className={style.title}>Lønnskalkulator</h2> <p> Vil du vite hva du vil tjene hos oss? Svar på to enkle spørsmål: </p> <div className={style.gradeContainer} role="group" aria-labelledby="degree-title" > <h3 className={style.question} id="degree-title"> Hvilken grad har eller får du? </h3> <RadioButton changed={setDegree} id="degree-1" isSelected={degree === 'bachelor'}
varianter/variant.no
src/salary-calculator/index.tsx
TypeScript
TypeAliasDeclaration
type Props = { year: number; degree: Degree; addition?: number; };
varianter/variant.no
src/salary-calculator/index.tsx
TypeScript
MethodDeclaration
formatCurrency(props
varianter/variant.no
src/salary-calculator/index.tsx
TypeScript
MethodDeclaration
and(style
varianter/variant.no
src/salary-calculator/index.tsx
TypeScript
ArrowFunction
() => this.alertService = injector.get(JhiAlertService)
Freemahn/EmployeesList
src/main/webapp/app/blocks/interceptor/notification.interceptor.ts
TypeScript
ArrowFunction
(response: Response) => { const headers = []; response.headers.forEach((value, name) => { if (name.toLowerCase().endsWith('app-alert') || name.toLowerCase().endsWith('app-params')) { headers.push(name); } }); if (headers.length > 1) { headers.sort(); const alertKey = response.headers.get(headers[ 0 ]); if (typeof alertKey === 'string') { if (this.alertService) { this.alertService.success(alertKey, null, null); } } } return response; }
Freemahn/EmployeesList
src/main/webapp/app/blocks/interceptor/notification.interceptor.ts
TypeScript
ArrowFunction
(value, name) => { if (name.toLowerCase().endsWith('app-alert') || name.toLowerCase().endsWith('app-params')) { headers.push(name); } }
Freemahn/EmployeesList
src/main/webapp/app/blocks/interceptor/notification.interceptor.ts
TypeScript
ArrowFunction
(error) => { return Observable.throw(error); // here, response is an error }
Freemahn/EmployeesList
src/main/webapp/app/blocks/interceptor/notification.interceptor.ts
TypeScript
ClassDeclaration
export class NotificationInterceptor extends JhiHttpInterceptor { private alertService: JhiAlertService; constructor(private injector: Injector) { super(); setTimeout(() => this.alertService = injector.get(JhiAlertService)); } requestIntercept(options?: RequestOptionsArgs): RequestOptionsArgs { return options; } responseIntercept(observable: Observable<Response>): Observable<Response> { return observable.map((response: Response) => { const headers = []; response.headers.forEach((value, name) => { if (name.toLowerCase().endsWith('app-alert') || name.toLowerCase().endsWith('app-params')) { headers.push(name); } }); if (headers.length > 1) { headers.sort(); const alertKey = response.headers.get(headers[ 0 ]); if (typeof alertKey === 'string') { if (this.alertService) { this.alertService.success(alertKey, null, null); } } } return response; }).catch((error) => { return Observable.throw(error); // here, response is an error }); } }
Freemahn/EmployeesList
src/main/webapp/app/blocks/interceptor/notification.interceptor.ts
TypeScript
MethodDeclaration
requestIntercept(options?: RequestOptionsArgs): RequestOptionsArgs { return options; }
Freemahn/EmployeesList
src/main/webapp/app/blocks/interceptor/notification.interceptor.ts
TypeScript
MethodDeclaration
responseIntercept(observable: Observable<Response>): Observable<Response> { return observable.map((response: Response) => { const headers = []; response.headers.forEach((value, name) => { if (name.toLowerCase().endsWith('app-alert') || name.toLowerCase().endsWith('app-params')) { headers.push(name); } }); if (headers.length > 1) { headers.sort(); const alertKey = response.headers.get(headers[ 0 ]); if (typeof alertKey === 'string') { if (this.alertService) { this.alertService.success(alertKey, null, null); } } } return response; }).catch((error) => { return Observable.throw(error); // here, response is an error }); }
Freemahn/EmployeesList
src/main/webapp/app/blocks/interceptor/notification.interceptor.ts
TypeScript
FunctionDeclaration
export function getPackageOptions() { const devices = core.getInput("types", { required: true }); const openwrt_version = core.getInput("openwrt-version"); const kernel_version = core.getInput("kernel-version"); const whoami = core.getInput("whoami"); const out = core.getInput("out"); const openwrt_path = core.getInput("openwrt-path"); const openwrt_url = core.getInput("openwrt-url"); const sub_name = core.getInput("sub-name"); const githubrepository = core.getInput("githubrepository"); if (util.isNull(openwrt_path) && util.isNull(openwrt_url)) { core.setFailed(`Both [openwrt-path] and [.openwrt-url] cannot be empty.`); } return { devices, openwrt_version, kernel_version, whoami, out, openwrt_path, openwrt_url, sub_name, githubrepository } }
mingxiaoyu/package-flippy-openwrt
src/PackageOptions.ts
TypeScript
InterfaceDeclaration
export interface PackageOptions { devices: string; openwrt_version: string; kernel_version: string; whoami: string; out: string; openwrt_path: string; openwrt_url: string; sub_name: string; }
mingxiaoyu/package-flippy-openwrt
src/PackageOptions.ts
TypeScript
InterfaceDeclaration
export interface Kernels { Item: Array<string> Latest: string; Latest_O: string; }
mingxiaoyu/package-flippy-openwrt
src/PackageOptions.ts
TypeScript
ArrowFunction
({ submitSearch, searchValue, onChangeSearchValue, searchFilter, changeFilter }) => { return ( <div className="input-field"> <input type="search" placeholder="Enter movie/series name" value={searchValue} onChange={onChangeSearchValue} /> <button className="btn search-btn" type="submit" onClick={submitSearch}>Search</button> <label htmlFor="radio-all"> <input type="radio" id="radio-all" data-type="all" name="type" onChange={changeFilter} checked={searchFilter === 'all'}
qewew91/react-movies-course
src/components/Search.tsx
TypeScript
InterfaceDeclaration
interface SearchProps { submitSearch: (e: MouseEvent<HTMLButtonElement>) => void onChangeSearchValue: (e: ChangeEvent<HTMLInputElement>) => void searchValue: string searchFilter: SearchType changeFilter: (e: ChangeEvent<HTMLInputElement>) => void }
qewew91/react-movies-course
src/components/Search.tsx
TypeScript
ArrowFunction
() => { let service: PlanesService; beforeEach(() => { TestBed.configureTestingModule({}); service = TestBed.inject(PlanesService); }); it('should be created', () => { expect(service).toBeTruthy(); }); }
Flusinerd/acars
src/app/planes.service.spec.ts
TypeScript
ArrowFunction
() => { TestBed.configureTestingModule({}); service = TestBed.inject(PlanesService); }
Flusinerd/acars
src/app/planes.service.spec.ts
TypeScript
ArrowFunction
_type => SortOrder
ChristianDavis/typegraphql-prisma
examples/1-prototyping/prisma/generated/type-graphql/resolvers/inputs/PostMinOrderByAggregateInput.ts
TypeScript
ClassDeclaration
@TypeGraphQL.InputType({ isAbstract: true }) export class PostMinOrderByAggregateInput { @TypeGraphQL.Field(_type => SortOrder, { nullable: true }) id?: "asc" | "desc" | undefined; @TypeGraphQL.Field(_type => SortOrder, { nullable: true }) createdAt?: "asc" | "desc" | undefined; @TypeGraphQL.Field(_type => SortOrder, { nullable: true }) updatedAt?: "asc" | "desc" | undefined; @TypeGraphQL.Field(_type => SortOrder, { nullable: true }) published?: "asc" | "desc" | undefined; @TypeGraphQL.Field(_type => SortOrder, { nullable: true }) title?: "asc" | "desc" | undefined; @TypeGraphQL.Field(_type => SortOrder, { nullable: true }) content?: "asc" | "desc" | undefined; @TypeGraphQL.Field(_type => SortOrder, { nullable: true }) authorId?: "asc" | "desc" | undefined; }
ChristianDavis/typegraphql-prisma
examples/1-prototyping/prisma/generated/type-graphql/resolvers/inputs/PostMinOrderByAggregateInput.ts
TypeScript
InterfaceDeclaration
interface Container { inspect(options: {}, callback: Callback<ContainerInspectInfo>): void; inspect(callback: Callback<ContainerInspectInfo>): void; inspect(options?: {}): Promise<ContainerInspectInfo>; rename(options: {}, callback: Callback<any>): void; rename(options: {}): Promise<any>; update(options: {}, callback: Callback<any>): void; update(options: {}): Promise<any>; top(options: {}, callback: Callback<any>): void; top(callback: Callback<any>): void; top(options?: {}): Promise<any>; changes(callback: Callback<any>): void; changes(): Promise<any>; export(callback: Callback<NodeJS.ReadableStream>): void; export(): Promise<NodeJS.ReadableStream>; start(options: {}, callback: Callback<any>): void; start(callback: Callback<any>): void; start(options?: {}): Promise<any>; pause(options: {}, callback: Callback<any>): void; pause(callback: Callback<any>): void; pause(options?: {}): Promise<any>; unpause(options: {}, callback: Callback<any>): void; unpause(callback: Callback<any>): void; unpause(options?: {}): Promise<any>; exec(options: {}, callback: Callback<any>): void; exec(options: {}): Promise<any>; commit(options: {}, callback: Callback<any>): void; commit(callback: Callback<any>): void; commit(options?: {}): Promise<any>; stop(options: {}, callback: Callback<any>): void; stop(callback: Callback<any>): void; stop(options?: {}): Promise<any>; restart(options: {}, callback: Callback<any>): void; restart(callback: Callback<any>): void; restart(options?: {}): Promise<any>; kill(options: {}, callback: Callback<any>): void; kill(callback: Callback<any>): void; kill(options?: {}): Promise<any>; resize(options: {}, callback: Callback<any>): void; resize(callback: Callback<any>): void; resize(options?: {}): Promise<any>; wait(callback: Callback<any>): void; wait(): Promise<any>; remove(options: {}, callback: Callback<any>): void; remove(callback: Callback<any>): void; remove(options?: {}): Promise<any>; /** Deprecated since RAPI v1.20 */ copy(options: {}, callback: Callback<any>): void; /** Deprecated since RAPI v1.20 */ copy(callback: Callback<any>): void; /** Deprecated since RAPI v1.20 */ copy(options?: {}): Promise<any>; getArchive(options: {}, callback: Callback<NodeJS.ReadableStream>): void; getArchive(options: {}): Promise<NodeJS.ReadableStream>; infoArchive(options: {}, callback: Callback<any>): void; infoArchive(options: {}): Promise<any>; /** @param file Filename (will read synchronously), Buffer or stream */ putArchive(file: string | Buffer | NodeJS.ReadableStream, options: {}, callback: Callback<NodeJS.WritableStream>): void; putArchive(file: string | Buffer | NodeJS.ReadableStream, options: {}): Promise<NodeJS.ReadWriteStream>; logs(options: ContainerLogsOptions, callback: Callback<NodeJS.ReadableStream>): void; logs(callback: Callback<NodeJS.ReadableStream>): void; logs(options?: ContainerLogsOptions): Promise<NodeJS.ReadableStream>; stats(options: {}, callback: Callback<any>): void; stats(callback: Callback<any>): void; stats(options?: {}): Promise<any>; attach(options: {}, callback: Callback<NodeJS.ReadableStream>): void; attach(options: {}): Promise<NodeJS.ReadableStream>; modem: any; id?: string; }
misak113/DefinitelyTyped
types/dockerode/index.d.ts
TypeScript
InterfaceDeclaration
interface Image { inspect(callback: Callback<ImageInspectInfo>): void; inspect(): Promise<ImageInspectInfo>; history(callback: Callback<any>): void; history(): Promise<any>; get(callback: Callback<NodeJS.ReadableStream>): void; get(): Promise<NodeJS.ReadableStream>; push(options: {}, callback: Callback<NodeJS.ReadableStream>): void; push(callback: Callback<NodeJS.ReadableStream>): void; push(options?: {}): Promise<NodeJS.ReadableStream>; tag(options: {}, callback: Callback<any>): void; tag(callback: Callback<any>): void; tag(options?: {}): Promise<any>; remove(options: {}, callback: Callback<ImageRemoveInfo>): void; remove(callback: Callback<ImageRemoveInfo>): void; remove(options?: {}): Promise<any>; modem: any; id?: string; }
misak113/DefinitelyTyped
types/dockerode/index.d.ts
TypeScript
InterfaceDeclaration
interface Volume { inspect(callback: Callback<any>): void; inspect(): Promise<any>; remove(options: {}, callback: Callback<any>): void; remove(callback: Callback<any>): void; remove(options?: {}): Promise<any>; modem: any; name?: string; }
misak113/DefinitelyTyped
types/dockerode/index.d.ts
TypeScript
InterfaceDeclaration
interface Service { inspect(callback: Callback<any>): void; inspect(): Promise<any>; remove(options: {}, callback: Callback<any>): void; remove(callback: Callback<any>): void; remove(options?: {}): Promise<any>; update(options: {}, callback: Callback<any>): void; update(options: {}): Promise<any>; modem: any; id?: string; }
misak113/DefinitelyTyped
types/dockerode/index.d.ts
TypeScript
InterfaceDeclaration
interface Task { inspect(callback: Callback<any>): void; inspect(): Promise<any>; modem: any; id?: string; }
misak113/DefinitelyTyped
types/dockerode/index.d.ts
TypeScript
InterfaceDeclaration
interface Node { inspect(callback: Callback<any>): void; inspect(): Promise<any>; update(options: {}, callback: Callback<any>): void; update(callback: Callback<any>): void; update(options?: {}): Promise<any>; remove(options: {}, callback: Callback<any>): void; remove(callback: Callback<any>): void; remove(options?: {}): Promise<any>; modem: any; id?: string; }
misak113/DefinitelyTyped
types/dockerode/index.d.ts
TypeScript
InterfaceDeclaration
interface Plugin { modem: any; name: string; remote: any; inspect(callback: Callback<PluginInspectInfo>): void; inspect(): Promise<PluginInspectInfo>; remove(options: {}, callback: Callback<any>): void; remove(callback: Callback<any>): void; remove(options?: {}): Promise<any>; privileges(callback: Callback<any>): void; privileges(): Promise<any>; pull(options: {}, callback: Callback<any>): void; pull(options: {}): Promise<any>; enable(options: {}, callback: Callback<any>): void; enable(callback: Callback<any>): void; enable(options?: {}): Promise<any>; disable(options: {}, callback: Callback<any>): void; disable(callback: Callback<any>): void; disable(options?: {}): Promise<any>; push(options: {}, callback: Callback<any>): void; push(callback: Callback<any>): void; push(options?: {}): Promise<any>; configure(options: {}, callback: Callback<any>): void; configure(callback: Callback<any>): void; configure(options?: {}): Promise<any>; upgrade(auth: any, options: {}, callback: Callback<any>): void; upgrade(auth: any, callback: Callback<any>): void; upgrade(auth: any, options?: {}): Promise<any>; }
misak113/DefinitelyTyped
types/dockerode/index.d.ts
TypeScript
InterfaceDeclaration
interface Secret { inspect(callback: Callback<SecretInfo>): void; inspect(): Promise<SecretInfo>; update(options: {}, callback: Callback<any>): void; update(callback: Callback<any>): void; update(options?: {}): Promise<any>; remove(options: {}, callback: Callback<any>): void; remove(callback: Callback<any>): void; remove(options?: {}): Promise<any>; modem: any; id?: string; }
misak113/DefinitelyTyped
types/dockerode/index.d.ts
TypeScript
InterfaceDeclaration
interface Network { inspect(callback: Callback<any>): void; inspect(): Promise<any>; remove(options: {}, callback: Callback<any>): void; remove(callback: Callback<any>): void; remove(options?: {}): Promise<any>; connect(options: {}, callback: Callback<any>): void; connect(callback: Callback<any>): void; connect(options?: {}): Promise<any>; disconnect(options: {}, callback: Callback<any>): void; disconnect(callback: Callback<any>): void; disconnect(options?: {}): Promise<any>; modem: any; id?: string; }
misak113/DefinitelyTyped
types/dockerode/index.d.ts
TypeScript
InterfaceDeclaration
interface Exec { inspect(callback: Callback<any>): void; inspect(): Promise<any>; start(options: {}, callback: Callback<any>): void; start(options: {}): Promise<any>; resize(options: {}, callback: Callback<any>): void; resize(options: {}): Promise<any>; modem: any; id?: string; }
misak113/DefinitelyTyped
types/dockerode/index.d.ts
TypeScript
InterfaceDeclaration
interface ImageInfo { Id: string; ParentId: string; RepoTags: string[]; RepoDigests?: string[]; Created: number; Size: number; VirtualSize: number; Labels: { [label: string]: string }; }
misak113/DefinitelyTyped
types/dockerode/index.d.ts
TypeScript
InterfaceDeclaration
interface ContainerInfo { Id: string; Names: string[]; Image: string; ImageID: string; Command: string; Created: number; Ports: Port[]; Labels: { [label: string]: string }; State: string; Status: string; HostConfig: { NetworkMode: string; }; NetworkSettings: { Networks: { [networkType: string]: NetworkInfo } }; }
misak113/DefinitelyTyped
types/dockerode/index.d.ts
TypeScript
InterfaceDeclaration
interface Port { IP: string; PrivatePort: number; PublicPort: number; Type: string; }
misak113/DefinitelyTyped
types/dockerode/index.d.ts
TypeScript
InterfaceDeclaration
interface NetworkInfo { IPAMConfig?: any; Links?: any; Aliases?: any; NetworkID: string; EndpointID: string; Gateway: string; IPAddress: string; IPPrefixLen: number; IPv6Gateway: string; GlobalIPv6Address: string; GlobalIPv6PrefixLen: number; MacAddress: string; }
misak113/DefinitelyTyped
types/dockerode/index.d.ts
TypeScript
InterfaceDeclaration
interface ContainerInspectInfo { Id: string; Created: string; Path: string; Args: string[]; State: { Status: string; Running: boolean; Paused: boolean; Restarting: boolean; OOMKilled: boolean; Dead: boolean; Pid: number; ExitCode: number; Error: string; StartedAt: string; FinishedAt: string; }; Image: string; ResolvConfPath: string; HostnamePath: string; HostsPath: string; LogPath: string; Name: string; RestartCount: number; Driver: string; MountLabel: string; ProcessLabel: string; AppArmorProfile: string; ExecIDs?: any; HostConfig: HostConfig; GraphDriver: { Name: string; Data: { DeviceId: string; DeviceName: string; DeviceSize: string; } }; Mounts: Array<{ Source: string; Destination: string; Mode: string; RW: boolean; Propagation: string; }>; Config: { Hostname: string; Domainname: string; User: string; AttachStdin: boolean; AttachStdout: boolean; AttachStderr: boolean; ExposedPorts: { [portAndProtocol: string]: {} }; Tty: boolean; OpenStdin: boolean; StdinOnce: boolean; Env: string[]; Cmd: string[]; Image: string; Volumes: { [volume: string]: {} }; WorkingDir: string; Entrypoint?: any; OnBuild?: any; Labels: { [label: string]: string } }; NetworkSettings: { Bridge: string; SandboxID: string; HairpinMode: boolean; LinkLocalIPv6Address: string; LinkLocalIPv6PrefixLen: number; Ports: { [portAndProtocol: string]: { HostIp: string; HostPort: string; } }; SandboxKey: string; SecondaryIPAddresses?: any; SecondaryIPv6Addresses?: any; EndpointID: string; Gateway: string; GlobalIPv6Address: string; GlobalIPv6PrefixLen: number; IPAddress: string; IPPrefixLen: number; IPv6Gateway: string; MacAddress: string; Networks: { [type: string]: { IPAMConfig?: any; Links?: any; Aliases?: any; NetworkID: string; EndpointID: string; Gateway: string; IPAddress: string; IPPrefixLen: number; IPv6Gateway: string; GlobalIPv6Address: string; GlobalIPv6PrefixLen: number; MacAddress: string; } }; Node?: { ID: string; IP: string; Addr: string; Name: string; Cpus: number; Memory: number; Labels: any; } }; }
misak113/DefinitelyTyped
types/dockerode/index.d.ts
TypeScript
InterfaceDeclaration
interface HostConfig { AutoRemove: boolean; Binds: string[]; ContainerIDFile: string; LogConfig: { Type: string; Config: any; }; NetworkMode: string; PortBindings?: any; RestartPolicy: { Name: string; MaximumRetryCount: number; }; VolumeDriver: string; VolumesFrom?: any; CapAdd?: any; CapDrop?: any; Dns: any[]; DnsOptions: any[]; DnsSearch: any[]; ExtraHosts?: any; IpcMode: string; Links?: any; OomScoreAdj: number; PidMode: string; Privileged: boolean; PublishAllPorts: boolean; ReadonlyRootfs: boolean; SecurityOpt?: any; UTSMode: string; ShmSize: number; ConsoleSize: number[]; Isolation: string; CpuShares: number; CgroupParent: string; BlkioWeight: number; BlkioWeightDevice?: any; BlkioDeviceReadBps?: any; BlkioDeviceWriteBps?: any; BlkioDeviceReadIOps?: any; BlkioDeviceWriteIOps?: any; CpuPeriod: number; CpuQuota: number; CpusetCpus: string; CpusetMems: string; Devices?: any; DiskQuota: number; KernelMemory: number; Memory: number; MemoryReservation: number; MemorySwap: number; MemorySwappiness: number; OomKillDisable: boolean; PidsLimit: number; Ulimits?: any; }
misak113/DefinitelyTyped
types/dockerode/index.d.ts
TypeScript
InterfaceDeclaration
interface ImageInspectInfo { Id: string; RepoTags: string[]; RepoDigests: string[]; Parent: string; Comment: string; Created: string; Container: string; ContainerConfig: { Hostname: string; Domainname: string; User: string; AttachStdin: boolean; AttachStdout: boolean; AttachStderr: boolean; ExposedPorts: { [portAndProtocol: string]: {} }; Tty: boolean; OpenStdin: boolean; StdinOnce: boolean; Env: string[]; Cmd: string[]; ArgsEscaped: boolean; Image: string; Volumes: { [path: string]: {} }, WorkingDir: string; Entrypoint?: any; OnBuild?: any[]; Labels: { [label: string]: string } }; DockerVersion: string; Author: string; Config: { Hostname: string; Domainname: string; User: string; AttachStdin: boolean; AttachStdout: boolean; AttachStderr: boolean; ExposedPorts: { [portAndProtocol: string]: {} } Tty: boolean; OpenStdin: boolean; StdinOnce: boolean; Env: string[]; Cmd: string[]; ArgsEscaped: boolean; Image: string; Volumes: { [path: string]: {} }, WorkingDir: string; Entrypoint?: any; OnBuild: any[]; Labels: { [label: string]: string } }; Architecture: string; Os: string; Size: number; VirtualSize: number; GraphDriver: { Name: string; Data: { DeviceId: string; DeviceName: string; DeviceSize: string; } }; }
misak113/DefinitelyTyped
types/dockerode/index.d.ts
TypeScript
InterfaceDeclaration
interface ContainerCreateOptions { name?: string; Hostname?: string; Domainname?: string; User?: string; AttachStdin?: boolean; AttachStdout?: boolean; AttachStderr?: boolean; Tty?: boolean; OpenStdin?: boolean; StdinOnce?: boolean; Env?: string[]; Cmd?: string[]; Entrypoint?: string; Image?: string; Labels?: { [label: string]: string }; Volumes?: { [volume: string]: {} }; WorkingDir?: string; NetworkDisabled?: boolean; MacAddress?: boolean; ExposedPorts?: { [port: string]: {} }; StopSignal?: string; HostConfig?: { AutoRemove?: boolean; Binds?: string[]; Links?: string[]; Memory?: number; MemorySwap?: number; MemoryReservation?: number; KernelMemory?: number; CpuPercent?: number; CpuShares?: number; CpuPeriod?: number; CpuQuota?: number; CpusetMems?: string; MaximumIOps?: number; MaxmimumIOBps?: number; BlkioWeightDevice?: Array<{}>; BlkioDeviceReadBps?: Array<{}>; BlkioDeviceReadIOps?: Array<{}>; BlkioDeviceWriteBps?: Array<{}>; BlkioDeviceWriteIOps?: Array<{}>; MemorySwappiness?: number; OomKillDisable?: boolean; OomScoreAdj?: number; PidMode?: string; PidsLimit?: number; PortBindings?: { [portAndProtocol: string]: Array<{ [index: string]: string }> }; PublishAllPorts?: boolean; Privileged?: boolean; ReadonlyRootfs?: boolean; Dns?: string[]; DnsOptions?: string[]; DnsSearch?: string[]; ExtraHosts?: any; VolumesFrom?: string[]; CapAdd?: string[]; CapDrop?: string[]; GroupAdd?: string[]; RestartPolicy?: { [index: string]: number | string }; NetworkMode?: string; Devices?: any[]; Sysctls?: { [index: string]: string }; Ulimits?: Array<{}>; LogConfig?: { [index: string]: string | {} }; SecurityOpt?: { [index: string]: any }; CgroupParent?: string; VolumeDriver?: string; ShmSize?: number; }; NetworkingConfig?: { EndpointsConfig?: { [index: string]: any; isolated_nw?: { [index: string]: any; IPAMConfig?: { IPv4Address?: string; IPv6Adress?: string; LinkLocalIPs?: string[]; } Links?: string[]; Aliases?: string[]; } } }; }
misak113/DefinitelyTyped
types/dockerode/index.d.ts
TypeScript
InterfaceDeclaration
interface KeyObject { pem: string | Buffer; passphrase?: string; }
misak113/DefinitelyTyped
types/dockerode/index.d.ts
TypeScript
InterfaceDeclaration
interface DockerOptions { socketPath?: string; host?: string; port?: number | string; ca?: string | string[] | Buffer | Buffer[]; cert?: string | string[] | Buffer | Buffer[]; key?: string | string[] | Buffer | Buffer[] | KeyObject[]; protocol?: "https" | "http"; timeout?: number; version?: string; Promise?: typeof Promise; }
misak113/DefinitelyTyped
types/dockerode/index.d.ts
TypeScript
InterfaceDeclaration
interface SecretVersion { Index: number; }
misak113/DefinitelyTyped
types/dockerode/index.d.ts
TypeScript
InterfaceDeclaration
interface ServiceSpec { Name: string; }
misak113/DefinitelyTyped
types/dockerode/index.d.ts
TypeScript
InterfaceDeclaration
interface SecretInfo { ID: string; Version: SecretVersion; CreatedAt: string; UpdatedAt?: string; Spec?: ServiceSpec; }
misak113/DefinitelyTyped
types/dockerode/index.d.ts
TypeScript
InterfaceDeclaration
interface PluginInfo { Id?: string; Name: string; Enabled: boolean; Settings: PluginSettings; PluginReference?: string; Config: PluginConfig; }
misak113/DefinitelyTyped
types/dockerode/index.d.ts
TypeScript
InterfaceDeclaration
interface PluginSettings { Mounts: PluginMount[]; Env: string[]; Args: string[]; Devices: PluginDevice[]; }
misak113/DefinitelyTyped
types/dockerode/index.d.ts
TypeScript
InterfaceDeclaration
interface PluginConfig { Description: string; Documentation: string; Interface: any; Entrypoint: string[]; WorkDir: string; User?: User; Network: Network; Linux: Linux; PropagatedMount: string; Mounts: PluginMount[]; Env: PluginEnv[]; Args: Args; rootfs: any; }
misak113/DefinitelyTyped
types/dockerode/index.d.ts
TypeScript
InterfaceDeclaration
interface Interface { Types: PluginInterfaceType[]; Socket: string; }
misak113/DefinitelyTyped
types/dockerode/index.d.ts
TypeScript
InterfaceDeclaration
interface PluginInterfaceType { Prefix: string; Capability: string; Version: string; }
misak113/DefinitelyTyped
types/dockerode/index.d.ts
TypeScript
InterfaceDeclaration
interface PluginMount { Name: string; Description: string; Settable: string[]; Source: string; Destination: string; Type: string; Options: string[]; }
misak113/DefinitelyTyped
types/dockerode/index.d.ts
TypeScript
InterfaceDeclaration
interface Linux { Capabilities: string[]; AllowAllDevices: boolean; Devices: PluginDevice[]; }
misak113/DefinitelyTyped
types/dockerode/index.d.ts
TypeScript
InterfaceDeclaration
interface PluginDevice { Name: string; Description: string; Settable: string[]; Path: string; }
misak113/DefinitelyTyped
types/dockerode/index.d.ts
TypeScript
InterfaceDeclaration
interface Network { Type: string; }
misak113/DefinitelyTyped
types/dockerode/index.d.ts
TypeScript
InterfaceDeclaration
interface PluginEnv { Name: string; Description: string; Settable: string[]; Value: string; }
misak113/DefinitelyTyped
types/dockerode/index.d.ts
TypeScript
InterfaceDeclaration
interface Args { Name: string; Description: string; Settable: string[]; Value: string; }
misak113/DefinitelyTyped
types/dockerode/index.d.ts
TypeScript
InterfaceDeclaration
interface User { UID: number; GID: number; }
misak113/DefinitelyTyped
types/dockerode/index.d.ts
TypeScript
InterfaceDeclaration
interface ImageRemoveInfo { Untagged: string; Deleted: string; }
misak113/DefinitelyTyped
types/dockerode/index.d.ts
TypeScript
InterfaceDeclaration
interface PruneImagesInfo { ImagesDeleted: ImageRemoveInfo[]; SpaceReclaimed: number; }
misak113/DefinitelyTyped
types/dockerode/index.d.ts
TypeScript
InterfaceDeclaration
interface PruneVolumesInfo { VolumesDeleted: string[]; SpaceReclaimed: number; }
misak113/DefinitelyTyped
types/dockerode/index.d.ts
TypeScript
InterfaceDeclaration
interface PruneContainersInfo { ContainersDeleted: string[]; SpaceReclaimed: number; }
misak113/DefinitelyTyped
types/dockerode/index.d.ts
TypeScript
InterfaceDeclaration
interface PruneNetworksInfo { NetworksDeleted: string[]; }
misak113/DefinitelyTyped
types/dockerode/index.d.ts
TypeScript
InterfaceDeclaration
interface ContainerLogsOptions { stdout?: boolean; stderr?: boolean; follow?: boolean; since?: number; details?: boolean; tail?: number; timestamps?: boolean; }
misak113/DefinitelyTyped
types/dockerode/index.d.ts
TypeScript
InterfaceDeclaration
interface ImageBuildContext { context: string; src: string[]; }
misak113/DefinitelyTyped
types/dockerode/index.d.ts
TypeScript
TypeAliasDeclaration
type PluginInspectInfo = PluginInfo;
misak113/DefinitelyTyped
types/dockerode/index.d.ts
TypeScript
TypeAliasDeclaration
type Callback<T> = (error?: any, result?: T) => void;
misak113/DefinitelyTyped
types/dockerode/index.d.ts
TypeScript
MethodDeclaration
createContainer(options: Dockerode.ContainerCreateOptions, callback: Callback<Dockerode.Container>): void;
misak113/DefinitelyTyped
types/dockerode/index.d.ts
TypeScript
MethodDeclaration
createContainer(options: Dockerode.ContainerCreateOptions): Promise<Dockerode.Container>;
misak113/DefinitelyTyped
types/dockerode/index.d.ts
TypeScript
MethodDeclaration
createImage(options: {}, callback: Callback<Dockerode.Image>): void;
misak113/DefinitelyTyped
types/dockerode/index.d.ts
TypeScript
MethodDeclaration
createImage(auth: any, options: {}, callback: Callback<Dockerode.Image>): void;
misak113/DefinitelyTyped
types/dockerode/index.d.ts
TypeScript
MethodDeclaration
createImage(options: {}): Promise<Dockerode.Image>;
misak113/DefinitelyTyped
types/dockerode/index.d.ts
TypeScript
MethodDeclaration
createImage(auth: any, options: {}): Promise<Dockerode.Image>;
misak113/DefinitelyTyped
types/dockerode/index.d.ts
TypeScript
MethodDeclaration
loadImage(file: string, options: {}, callback: Callback<any>): void;
misak113/DefinitelyTyped
types/dockerode/index.d.ts
TypeScript
MethodDeclaration
loadImage(file: string, callback: Callback<any>): void;
misak113/DefinitelyTyped
types/dockerode/index.d.ts
TypeScript
MethodDeclaration
loadImage(file: string, options?: {}): Promise<any>;
misak113/DefinitelyTyped
types/dockerode/index.d.ts
TypeScript
MethodDeclaration
importImage(file: string, options: {}, callback: Callback<any>): void;
misak113/DefinitelyTyped
types/dockerode/index.d.ts
TypeScript
MethodDeclaration
importImage(file: string, callback: Callback<any>): void;
misak113/DefinitelyTyped
types/dockerode/index.d.ts
TypeScript
MethodDeclaration
importImage(file: string, options?: {}): Promise<any>;
misak113/DefinitelyTyped
types/dockerode/index.d.ts
TypeScript
MethodDeclaration
checkAuth(options: any, callback: Callback<any>): void;
misak113/DefinitelyTyped
types/dockerode/index.d.ts
TypeScript
MethodDeclaration
checkAuth(options: any): Promise<any>;
misak113/DefinitelyTyped
types/dockerode/index.d.ts
TypeScript
MethodDeclaration
buildImage(file: string | NodeJS.ReadableStream | Dockerode.ImageBuildContext, options: {}, callback: Callback<any>): void;
misak113/DefinitelyTyped
types/dockerode/index.d.ts
TypeScript
MethodDeclaration
buildImage(file: string | NodeJS.ReadableStream | Dockerode.ImageBuildContext, callback: Callback<any>): void;
misak113/DefinitelyTyped
types/dockerode/index.d.ts
TypeScript
MethodDeclaration
buildImage(file: string | NodeJS.ReadableStream | Dockerode.ImageBuildContext, options?: {}): Promise<any>;
misak113/DefinitelyTyped
types/dockerode/index.d.ts
TypeScript
MethodDeclaration
getContainer(id: string): Dockerode.Container;
misak113/DefinitelyTyped
types/dockerode/index.d.ts
TypeScript
MethodDeclaration
getImage(name: string): Dockerode.Image;
misak113/DefinitelyTyped
types/dockerode/index.d.ts
TypeScript
MethodDeclaration
getVolume(name: string): Dockerode.Volume;
misak113/DefinitelyTyped
types/dockerode/index.d.ts
TypeScript
MethodDeclaration
getPlugin(name: string, remote: any): Dockerode.Plugin;
misak113/DefinitelyTyped
types/dockerode/index.d.ts
TypeScript
MethodDeclaration
getService(id: string): Dockerode.Service;
misak113/DefinitelyTyped
types/dockerode/index.d.ts
TypeScript
MethodDeclaration
getTask(id: string): Dockerode.Task;
misak113/DefinitelyTyped
types/dockerode/index.d.ts
TypeScript