mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-02-19 07:12:46 +00:00
13 lines
409 B
TypeScript
13 lines
409 B
TypeScript
import * as vsslnparse from 'vssln-parser';
|
|
import * as fs from 'fs';
|
|
|
|
vsslnparse('', solution => {
|
|
solution.visualStudioVersion; // $ExpectType string | undefined
|
|
solution.projects[0].name; // $ExpectType string
|
|
});
|
|
|
|
vsslnparse(fs.createReadStream('test.sln'), solution => {
|
|
solution.visualStudioVersion; // $ExpectType string | undefined
|
|
solution.projects[0].name; // $ExpectType string
|
|
});
|