mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 19:07:08 +00:00
23 lines
594 B
TypeScript
23 lines
594 B
TypeScript
import { ApplyOptions } from './apply-options';
|
|
import { Diff } from './diff';
|
|
import { Index } from './index_';
|
|
import { Repository } from './repository';
|
|
import { Tree } from './tree';
|
|
|
|
export namespace Apply {
|
|
const enum FLAGS {
|
|
CHECK = 1
|
|
}
|
|
|
|
const enum LOCATION {
|
|
WORKDIR = 0,
|
|
INDEX = 1,
|
|
BOTH = 2
|
|
}
|
|
}
|
|
|
|
export class Apply {
|
|
static apply(repo: Repository, diff: Diff, location: Apply.LOCATION, options: ApplyOptions): Promise<number>;
|
|
static toTree(repo: Repository, preimage: Tree, diff: Diff, options: ApplyOptions): Promise<Index>;
|
|
}
|