parent
63742bac56
commit
5a828bedd1
|
@ -42,7 +42,7 @@
|
|||
"rollup-plugin-node-globals": "1.1.0",
|
||||
"rollup-plugin-node-resolve": "2.0.0",
|
||||
"typescript": "2.3.2",
|
||||
"typescript-eslint-parser": "git://github.com/eslint/typescript-eslint-parser.git#2d09fb183e36a3b4089509c67cd256cd5f8871b0"
|
||||
"typescript-eslint-parser": "git://github.com/eslint/typescript-eslint-parser.git#87445776fce9dbc67139890b18143e767ab19c7d"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "jest",
|
||||
|
|
|
@ -2384,7 +2384,13 @@ function genericPrintNoParens(path, options, print, args) {
|
|||
return concat(parts);
|
||||
case "TSMethodSignature":
|
||||
parts.push(
|
||||
n.accessibility ? concat([n.accessibility, " "]) : "",
|
||||
n.export ? "export " : "",
|
||||
n.static ? "static " : "",
|
||||
n.readonly ? "readonly " : "",
|
||||
n.computed ? "[" : "",
|
||||
path.call(print, "key"),
|
||||
n.computed ? "]" : "",
|
||||
n.optional ? "?" : "",
|
||||
printFunctionTypeParameters(path, options, print),
|
||||
printFunctionParams(path, print, options)
|
||||
|
|
|
@ -47,11 +47,19 @@ exports[`methods.ts 1`] = `
|
|||
class X {
|
||||
optionalMethod?() {}
|
||||
}
|
||||
|
||||
interface Iterable<T> {
|
||||
export [Symbol.iterator](): Iterator<T>;
|
||||
}
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
class X {
|
||||
optionalMethod?() {}
|
||||
}
|
||||
|
||||
interface Iterable<T> {
|
||||
export [Symbol.iterator](): Iterator<T>;
|
||||
}
|
||||
|
||||
`;
|
||||
|
||||
exports[`optional.ts 1`] = `
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
class X {
|
||||
optionalMethod?() {}
|
||||
}
|
||||
|
||||
interface Iterable<T> {
|
||||
export [Symbol.iterator](): Iterator<T>;
|
||||
}
|
||||
|
|
|
@ -2821,6 +2821,13 @@ typedarray@^0.0.6:
|
|||
lodash.unescape "4.0.1"
|
||||
semver "5.3.0"
|
||||
|
||||
"typescript-eslint-parser@git://github.com/eslint/typescript-eslint-parser.git#87445776fce9dbc67139890b18143e767ab19c7d":
|
||||
version "3.0.0"
|
||||
resolved "git://github.com/eslint/typescript-eslint-parser.git#87445776fce9dbc67139890b18143e767ab19c7d"
|
||||
dependencies:
|
||||
lodash.unescape "4.0.1"
|
||||
semver "5.3.0"
|
||||
|
||||
typescript@2.3.2:
|
||||
version "2.3.2"
|
||||
resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.3.2.tgz#f0f045e196f69a72f06b25fd3bd39d01c3ce9984"
|
||||
|
|
Loading…
Reference in New Issue