mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-24 18:47:30 +00:00
Simplify by removing diff feature. Now just writes each template as an independent copy.
This commit is contained in:
60
templates/yeoman/typings/diff/diff.d.ts
vendored
60
templates/yeoman/typings/diff/diff.d.ts
vendored
@@ -1,60 +0,0 @@
|
||||
// Type definitions for diff
|
||||
// Project: https://github.com/kpdecker/jsdiff
|
||||
// Definitions by: vvakame <https://github.com/vvakame/>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
declare namespace JsDiff {
|
||||
interface IDiffResult {
|
||||
value: string;
|
||||
count?: number;
|
||||
added?: boolean;
|
||||
removed?: boolean;
|
||||
}
|
||||
|
||||
interface IBestPath {
|
||||
newPos: number;
|
||||
componenets: IDiffResult[];
|
||||
}
|
||||
|
||||
class Diff {
|
||||
ignoreWhitespace:boolean;
|
||||
|
||||
constructor(ignoreWhitespace?:boolean);
|
||||
|
||||
diff(oldString:string, newString:string):IDiffResult[];
|
||||
|
||||
pushComponent(components:IDiffResult[], value:string, added:boolean, removed:boolean):void;
|
||||
|
||||
extractCommon(basePath:IBestPath, newString:string, oldString:string, diagonalPath:number):number;
|
||||
|
||||
equals(left:string, right:string):boolean;
|
||||
|
||||
join(left:string, right:string):string;
|
||||
|
||||
tokenize(value:string):any; // return types are string or string[]
|
||||
}
|
||||
|
||||
function diffChars(oldStr:string, newStr:string):IDiffResult[];
|
||||
|
||||
function diffWords(oldStr:string, newStr:string):IDiffResult[];
|
||||
|
||||
function diffWordsWithSpace(oldStr:string, newStr:string):IDiffResult[];
|
||||
|
||||
function diffJson(oldObj: Object, newObj: Object): IDiffResult[];
|
||||
|
||||
function diffLines(oldStr:string, newStr:string):IDiffResult[];
|
||||
|
||||
function diffCss(oldStr:string, newStr:string):IDiffResult[];
|
||||
|
||||
function createPatch(fileName:string, oldStr:string, newStr:string, oldHeader:string, newHeader:string):string;
|
||||
|
||||
function applyPatch(oldStr:string, uniDiff:string):string;
|
||||
|
||||
function convertChangesToXML(changes:IDiffResult[]):string;
|
||||
|
||||
function convertChangesToDMP(changes:IDiffResult[]):{0: number; 1:string;}[];
|
||||
}
|
||||
|
||||
declare module "diff" {
|
||||
export = JsDiff;
|
||||
}
|
||||
1
templates/yeoman/typings/tsd.d.ts
vendored
1
templates/yeoman/typings/tsd.d.ts
vendored
@@ -3,6 +3,5 @@
|
||||
/// <reference path="glob/glob.d.ts" />
|
||||
/// <reference path="minimatch/minimatch.d.ts" />
|
||||
/// <reference path="lodash/lodash.d.ts" />
|
||||
/// <reference path="diff/diff.d.ts" />
|
||||
/// <reference path="mkdirp/mkdirp.d.ts" />
|
||||
/// <reference path="rimraf/rimraf.d.ts" />
|
||||
|
||||
Reference in New Issue
Block a user