diff --git a/index.d.ts b/index.d.ts index 6360b57..df15816 100644 --- a/index.d.ts +++ b/index.d.ts @@ -14,7 +14,7 @@ declare const xdg: { //(win)=> 'C:\\Users\\rivy\\AppData\\Local\\cache' ``` */ - readonly cache?: string; + readonly cache: string; /** Directory for user-specific configuration files. @@ -29,7 +29,7 @@ declare const xdg: { //(win)=> 'C:\\Users\\rivy\\AppData\\Roaming\\xdg.config' ``` */ - readonly config?: string; + readonly config: string; /** Directory for user-specific data files. @@ -44,7 +44,7 @@ declare const xdg: { //(win)=> 'C:\\Users\\rivy\\AppData\\Roaming\\xdg.data' ``` */ - readonly data?: string; + readonly data: string; /** Directory for user-specific non-essential runtime files and other file objects (such as sockets, named pipes, etc). @@ -74,7 +74,7 @@ declare const xdg: { //(win)=> 'C:\\Users\\rivy\\AppData\\Local\\xdg.state' ``` */ - readonly state?: string; + readonly state: string; /** Preference-ordered array of base directories to search for configuration files in addition to `.config`. diff --git a/index.test-d.ts b/index.test-d.ts index 0606db3..c3da12a 100644 --- a/index.test-d.ts +++ b/index.test-d.ts @@ -1,18 +1,11 @@ import {expectType, expectError} from 'tsd'; import xdg = require('.'); -expectType(xdg.cache); -expectError(xdg.cache); -expectType(xdg.config); -expectError(xdg.config); -expectType(xdg.data); -expectError(xdg.data); +expectType(xdg.cache); +expectType(xdg.config); +expectType(xdg.data); expectType(xdg.runtime); -expectError(xdg.runtime); -expectType(xdg.state); -expectError(xdg.state); +expectType(xdg.state); expectType(xdg.configDirs); -expectError(xdg.configDirs); expectType(xdg.dataDirs); -expectError(xdg.dataDirs);