DefinitelyTyped/types/eyes/eyes-tests.ts
Nathan Shively-Sanders 163f4438df Fix weak type errors (#16845)
* Fix first round of weak type errors

Done through griddle-react

* 95% done with weak type fixes

* Fix last couple of weak type errors

* Remove some lint from mithril tests

* mithril's Lifecycle is not a weak type any more

Restore the Lifecycle constraints in the rest of the definitions.

* Fix react-redux tests after #16652 broke them

* Remove package-lock.json
2017-06-04 22:03:03 -07:00

34 lines
508 B
TypeScript

import eyes = require('eyes');
var testObj = {
color: 'red',
num: 227
}
eyes.inspect(testObj)
var options = {
styles: {
all: 'green',
label: 'red',
other: 'red',
key: 'red',
special: 'red',
'string': 'red',
'number': 'red',
bool: 'red',
regexp: 'red'
},
pretty: false,
hideFunctions: true,
stream: process.stdout,
maxLength: 120
}
var result = eyes.inspector(options)