Skip to content

Commit

Permalink
fix: types
Browse files Browse the repository at this point in the history
  • Loading branch information
nikkeyl committed Aug 24, 2024
1 parent d6916bb commit eac5679
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/codeql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,11 @@ on:
- main
paths:
- src/index.ts
- src/types/*.d.ts
push:
branches:
- main
paths:
- src/index.ts
- src/types/*.d.ts

permissions:
actions: read
Expand Down
5 changes: 2 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { parse } from 'node:path';
import { FONT_FILE_NAME_REGEX } from '@archoleat/reglib';
import { error } from '@archoleat/notifier';

import type { Parameters } from './parameters.d.ts';
import type { Parameters } from './parameters.ts';

/**
* The asynchronous function `validateFontFileName` validates
Expand Down Expand Up @@ -34,8 +34,7 @@ const validateFontFileName = async (parameters: Parameters) => {

if (!match) {
await error({
message: `'${fileName}' doesn't match with '${selectRegex}'.`,
messageLength: Infinity,
message: [`(${fileName}) doesn't match with (${selectRegex})`],
});

return false;
Expand Down
2 changes: 1 addition & 1 deletion src/parameters.d.ts → src/parameters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ type Parameters = {
regex?: string | RegExp;
};

export { Parameters };
export type { Parameters };

0 comments on commit eac5679

Please sign in to comment.