File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -28,10 +28,10 @@ declare const macosRelease: {
2828 //=> {name: 'Big Sur', version: '11'}
2929 ```
3030 */
31- ( release ?: string ) : string ;
31+ ( release ?: string ) : { name : string , version : string } ;
3232
3333 // TODO: remove this in the next major version, refactor the whole definition to:
34- // declare function macosRelease(release?: string): string;
34+ // declare function macosRelease(release?: string): {name: string, version: string} ;
3535 // export = macosRelease;
3636 default : typeof macosRelease ;
3737} ;
Original file line number Diff line number Diff line change 11import { expectType } from 'tsd' ;
22import macosRelease = require( '.' ) ;
33
4- expectType < string > ( macosRelease ( ) ) ;
5- expectType < string > ( macosRelease ( 'foo' ) ) ;
4+ expectType < { name : string , version : string } > ( macosRelease ( ) ) ;
5+ expectType < { name : string , version : string } > ( macosRelease ( 'foo' ) ) ;
You can’t perform that action at this time.
0 commit comments