mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +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
|
|
});
|