Skip to content

Conversation

@fisker
Copy link
Contributor

@fisker fisker commented May 5, 2023

Same as sindresorhus/string-length#16, add an option to count ANSI escape codes.
Previously requested by #15, and Prettier do need count them.

@fisker
Copy link
Contributor Author

fisker commented May 5, 2023

#47 should fix the CI.

@sindresorhus
Copy link
Owner

Can you fix the conflict?

@sindresorhus
Copy link
Owner

CI is failing:

 index.test-d.ts:5:36 ✖ 5:36 Argument of type { ambiguousIsNarrow: false; } is not assignable to parameter of type Options. Property countAnsiEscapeCodes is missing in type { ambiguousIsNarrow: false; } but required in type Options. ✖ 6:55 Argument of type { countAnsiEscapeCodes: true; } is not assignable to parameter of type Options. Property ambiguousIsNarrow is missing in type { countAnsiEscapeCodes: true; } but required in type Options. 2 errors 
@fisker
Copy link
Contributor Author

fisker commented May 6, 2023

Fixed.

@sindresorhus sindresorhus merged commit 6e6993b into sindresorhus:main May 6, 2023
@fisker fisker deleted the countAnsiEscapeCodes branch May 6, 2023 08:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants