DefinitelyTyped/types/contains-path/contains-path-tests.ts
2018-12-25 02:10:40 +01:00

6 lines
255 B
TypeScript

import containsPath = require('contains-path');
containsPath('foo/bar', 'foo'); // $ExpectType boolean
containsPath('foo/bar', 'FOO', { nocase: true }); // $ExpectType boolean
containsPath('foobar', 'foo', { partialMatch: true }); // $ExpectType boolean