Visitar URL original
🤖 Merge PR #70819 @uswds/uswds: Update types for v3.9.0 (CharacterCou… · DefinitelyTyped/DefinitelyTyped@2b6eba9 · GitHub
Skip to content

Commit 2b6eba9

Browse files
authored
🤖 Merge PR #70819 @uswds/uswds: Update types for v3.9.0 (CharacterCount) by @aduth
1 parent 5d86c5a commit 2b6eba9

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

‎types/uswds__uswds/js/usa-character-count/index.d.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
interface CharacterCount {
22
init(root?: HTMLElement | Document): void;
3+
FORM_GROUP_ERROR_CLASS: string;
4+
LABEL_ERROR_CLASS: string;
5+
INPUT_ERROR_CLASS: string;
36
MESSAGE_INVALID_CLASS: string;
47
VALIDATION_MESSAGE: string;
58
STATUS_MESSAGE_CLASS: string;

‎types/uswds__uswds/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"private": true,
33
"name": "@types/uswds__uswds",
4-
"version": "3.8.9999",
4+
"version": "3.9.9999",
55
"projects": [
66
"https://github.com/uswds/uswds"
77
],

‎types/uswds__uswds/uswds__uswds-tests.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ button.off(element); // $ExpectType void
6161

6262
// Character Count
6363
characterCount.DEFAULT_STATUS_LABEL; // $ExpectType string
64+
characterCount.FORM_GROUP_ERROR_CLASS; // $ExpectType string
65+
characterCount.LABEL_ERROR_CLASS; // $ExpectType string
66+
characterCount.INPUT_ERROR_CLASS; // $ExpectType string
6467
characterCount.MESSAGE_INVALID_CLASS; // $ExpectType string
6568
characterCount.STATUS_MESSAGE_CLASS; // $ExpectType string
6669
characterCount.STATUS_MESSAGE_SR_ONLY_CLASS; // $ExpectType string

0 commit comments

Comments
 (0)