//// [discriminateObjectTypesOnly.ts]
type Thing = number | object;
const k: Thing = { toFixed: null }; // OK, satisfies object

type Thing2 = number | { toFixed: null } | object;
const q: Thing2 = { toFixed: null };
const h: Thing2 = { toString: null }; // OK, satisfies object

type Thing3 = number | { toFixed: null, toString: undefined } | object;
const l: Thing3 = { toString: undefined }; // error, toFixed isn't null


//// [discriminateObjectTypesOnly.js]
"use strict";
var k = { toFixed: null }; // OK, satisfies object
var q = { toFixed: null };
var h = { toString: null }; // OK, satisfies object
var l = { toString: undefined }; // error, toFixed isn't null
