Skip to content

Commit a8c9b39

Browse files
committed
fix: explicitly type version as string
1 parent 7ca08b2 commit a8c9b39

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/index.ts

+8-1
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,11 @@ export * from './lib/utils/preconditions/PreconditionContainerSingle';
5050
export type { CooldownContext } from './preconditions/Cooldown';
5151
export { CorePrecondition as ClientPermissionsCorePrecondition } from './preconditions/ClientPermissions';
5252

53-
export const version = '[VI]{version}[/VI]';
53+
/**
54+
* The [@sapphire/framework](https://github.com/sapphiredev/framework) version that you are currently using.
55+
* An example use of this is showing it of in a bot information command.
56+
*
57+
* Note to Sapphire developers: This needs to explicitly be `string` so it is not typed as the string that gets replaced by Rollup
58+
*/
59+
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
60+
export const version: string = '[VI]{version}[/VI]';

0 commit comments

Comments
 (0)