Skip to content

Update baselines for chained prototype assignments #23075

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
1 commit merged into from
Apr 2, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions tests/baselines/reference/chainedPrototypeAssignment.types
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
=== tests/cases/conformance/salsa/use.js ===
/// <reference path='./types.d.ts'/>
var mod = require('./mod');
>mod : typeof "tests/cases/conformance/salsa/mod"
>require('./mod') : typeof "tests/cases/conformance/salsa/mod"
>mod : typeof import("tests/cases/conformance/salsa/mod")
>require('./mod') : typeof import("tests/cases/conformance/salsa/mod")
>require : (name: string) => any
>'./mod' : "./mod"

var a = new mod.A()
>a : { a: number; } & { [x: string]: any; m(n: number): number; }
>new mod.A() : { a: number; } & { [x: string]: any; m(n: number): number; }
>mod.A : () => void
>mod : typeof "tests/cases/conformance/salsa/mod"
>mod : typeof import("tests/cases/conformance/salsa/mod")
>A : () => void

var b = new mod.B()
>b : { b: number; } & { [x: string]: any; m(n: number): number; }
>new mod.B() : { b: number; } & { [x: string]: any; m(n: number): number; }
>mod.B : () => void
>mod : typeof "tests/cases/conformance/salsa/mod"
>mod : typeof import("tests/cases/conformance/salsa/mod")
>B : () => void

a.m('nope')
Expand Down Expand Up @@ -69,14 +69,14 @@ var B = function() {
exports.A = A
>exports.A = A : () => void
>exports.A : () => void
>exports : typeof "tests/cases/conformance/salsa/mod"
>exports : typeof import("tests/cases/conformance/salsa/mod")
>A : () => void
>A : () => void

exports.B = B
>exports.B = B : () => void
>exports.B : () => void
>exports : typeof "tests/cases/conformance/salsa/mod"
>exports : typeof import("tests/cases/conformance/salsa/mod")
>B : () => void
>B : () => void

Expand Down
16 changes: 8 additions & 8 deletions tests/baselines/reference/jsdocTypeFromChainedAssignment2.types
Original file line number Diff line number Diff line change
@@ -1,36 +1,36 @@
=== tests/cases/conformance/jsdoc/use.js ===
/// <reference path='./types.d.ts'/>
var mod = require('./mod');
>mod : typeof "tests/cases/conformance/jsdoc/mod"
>require('./mod') : typeof "tests/cases/conformance/jsdoc/mod"
>mod : typeof import("tests/cases/conformance/jsdoc/mod")
>require('./mod') : typeof import("tests/cases/conformance/jsdoc/mod")
>require : (name: string) => any
>'./mod' : "./mod"

mod.f('no')
>mod.f('no') : number
>mod.f : (n: number) => number
>mod : typeof "tests/cases/conformance/jsdoc/mod"
>mod : typeof import("tests/cases/conformance/jsdoc/mod")
>f : (n: number) => number
>'no' : "no"

mod.g('also no')
>mod.g('also no') : number
>mod.g : (n: number) => number
>mod : typeof "tests/cases/conformance/jsdoc/mod"
>mod : typeof import("tests/cases/conformance/jsdoc/mod")
>g : (n: number) => number
>'also no' : "also no"

mod.h(0)
>mod.h(0) : string
>mod.h : (mom: string) => string
>mod : typeof "tests/cases/conformance/jsdoc/mod"
>mod : typeof import("tests/cases/conformance/jsdoc/mod")
>h : (mom: string) => string
>0 : 0

mod.i(1)
>mod.i(1) : string
>mod.i : (mom: string) => string
>mod : typeof "tests/cases/conformance/jsdoc/mod"
>mod : typeof import("tests/cases/conformance/jsdoc/mod")
>i : (mom: string) => string
>1 : 1

Expand All @@ -53,11 +53,11 @@ declare var module: { exports: any };
exports.f = exports.g = function fg(n) {
>exports.f = exports.g = function fg(n) { return n + 1} : (n: number) => number
>exports.f : (n: number) => number
>exports : typeof "tests/cases/conformance/jsdoc/mod"
>exports : typeof import("tests/cases/conformance/jsdoc/mod")
>f : (n: number) => number
>exports.g = function fg(n) { return n + 1} : (n: number) => number
>exports.g : (n: number) => number
>exports : typeof "tests/cases/conformance/jsdoc/mod"
>exports : typeof import("tests/cases/conformance/jsdoc/mod")
>g : (n: number) => number
>function fg(n) { return n + 1} : (n: number) => number
>fg : (n: number) => number
Expand Down