Skip to content

Commit

Permalink
fix: Fix type for some older TypeScript parsers. (#2191)
Browse files Browse the repository at this point in the history
* fix: Fix type for some older TypeScript parsers.
* fix schema
  • Loading branch information
Jason3S committed Jan 7, 2022
1 parent aa38828 commit b195499
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cspell.schema.json
Expand Up @@ -7,7 +7,7 @@
"properties": {
"cacheLocation": {
"$ref": "#/definitions/FSPathResolvable",
"description": "Path to the cache location. Can be a file or a directory. If none specified `.cspellcache` will be used. Relative paths are relative to the config file in which"
"description": "Path to the cache location. Can be a file or a directory. If none specified `.cspellcache` will be used. Relative paths are relative to the config file in which it is defined.\n\nA prefix of `${cwd}` is replaced with the current working directory."
},
"cacheStrategy": {
"$ref": "#/definitions/CacheStrategy",
Expand Down
2 changes: 1 addition & 1 deletion packages/cspell-types/cspell.schema.json
Expand Up @@ -7,7 +7,7 @@
"properties": {
"cacheLocation": {
"$ref": "#/definitions/FSPathResolvable",
"description": "Path to the cache location. Can be a file or a directory. If none specified `.cspellcache` will be used. Relative paths are relative to the config file in which"
"description": "Path to the cache location. Can be a file or a directory. If none specified `.cspellcache` will be used. Relative paths are relative to the config file in which it is defined.\n\nA prefix of `${cwd}` is replaced with the current working directory."
},
"cacheStrategy": {
"$ref": "#/definitions/CacheStrategy",
Expand Down
5 changes: 4 additions & 1 deletion packages/cspell-types/src/CSpellSettingsDef.ts
Expand Up @@ -234,7 +234,10 @@ export interface CacheSettings {
/**
* Path to the cache location. Can be a file or a directory.
* If none specified `.cspellcache` will be used.
* Relative paths are relative to the config file in which
* Relative paths are relative to the config file in which it
* is defined.
*
* A prefix of `${cwd}` is replaced with the current working directory.
*/
cacheLocation?: FSPathResolvable;

Expand Down
4 changes: 3 additions & 1 deletion packages/cspell-types/src/index.ts
@@ -1,4 +1,6 @@
export { ConfigFields, type CSpellUserSettingsFields } from './configFields';
// Using old-style of `type` exports because the new style breaks some integrations.
export { ConfigFields } from './configFields';
export type { CSpellUserSettingsFields } from './configFields';
export * from './CSpellReporter';
export * from './CSpellSettingsDef';
export type { TextDocumentOffset, TextOffset } from './TextOffset';

0 comments on commit b195499

Please sign in to comment.