Skip to content

Commit

Permalink
🔧 fix: try to fix ERR_MASONMARK_NOT_WRITE_ENOUGH_DOCS
Browse files Browse the repository at this point in the history
  • Loading branch information
masonmark committed Dec 14, 2024
1 parent dded692 commit b97c4a2
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 35 deletions.
4 changes: 4 additions & 0 deletions AlphabeticOrUnderscoreOrHyphenString.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,9 @@ const JSRCompatibleFactory = ValidatedString.create(
const type: ValidatedString<typeof isAlphabeticOrUnderscoreOrHyphen> = JSRCompatibleFactory.type;
const factory: ValidatedStringFactory<typeof isAlphabeticOrUnderscoreOrHyphen> = JSRCompatibleFactory.factory;


/**
A string that contains only characters `[a-zA-Z_-]` (letters, underscores, or hyphens).
*/
export type AlphabeticOrUnderscoreOrHyphenString = typeof type;
export const AlphabeticOrUnderscoreOrHyphenString = factory;
3 changes: 3 additions & 0 deletions AlphabeticOrUnderscoreString.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,8 @@ const JSRCompatibleFactory = ValidatedString.create(isAlphabeticOrUnderscore, {
const type: ValidatedString<typeof isAlphabeticOrUnderscore> = JSRCompatibleFactory.type;
const factory: ValidatedStringFactory<typeof isAlphabeticOrUnderscore> = JSRCompatibleFactory.factory;

/**
A string that contains only characters `[a-zA-Z_]` (letters or underscores).
*/
export type AlphabeticOrUnderscoreString = typeof type;
export const AlphabeticOrUnderscoreString = factory;
4 changes: 4 additions & 0 deletions AlphabeticString.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,9 @@ const JSRCompatibleFactory = ValidatedString.create(isAlphabetic, {
const type: ValidatedString<typeof isAlphabetic> = JSRCompatibleFactory.type;
const factory: ValidatedStringFactory<typeof isAlphabetic> = JSRCompatibleFactory.factory;


/**
A string that contains only letters `[a-zA-Z]`.
*/
export type AlphabeticString = typeof type;
export const AlphabeticString = factory;
35 changes: 0 additions & 35 deletions AwesomeString.ts

This file was deleted.

3 changes: 3 additions & 0 deletions LowercaseAlphabeticString.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,8 @@ const JSRCompatibleFactory = ValidatedString.create(isLowercaseAlpha, {
const type: ValidatedString<typeof isLowercaseAlpha> = JSRCompatibleFactory.type;
const factory: ValidatedStringFactory<typeof isLowercaseAlpha> = JSRCompatibleFactory.factory;

/**
A string that contains only lowercase letters `[a-z]`.
*/
export type LowercaseAlphabeticString = typeof type;
export const LowercaseAlphabeticString = factory;
2 changes: 2 additions & 0 deletions PrometheusMetricName.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ const factory: ValidatedStringFactory<typeof isPrometheusMetricName> = JSRCompat

/**
A validated string that represents a Prometheus metric name. See {@link ValidatedString} for more information. Note that this might not really exactly match the rules for Prometheus metric names, but it's close enough for our purposes; namely, generating metrics — don't rely on this to *validate* Prometheus metric names, as it is based on a quick skim of the Prometheus docs.
@category Prometheus
*/
export type PrometheusMetricName = typeof type;
export const PrometheusMetricName = factory;
5 changes: 5 additions & 0 deletions PrometheusMetricNameWithoutColon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,10 @@ const JSRCompatibleFactory = ValidatedString.create(
const type: ValidatedString<typeof isPrometheusMetricNameWithoutColon> = JSRCompatibleFactory.type;
const factory: ValidatedStringFactory<typeof isPrometheusMetricNameWithoutColon> = JSRCompatibleFactory.factory;

/**
A validated string that represents a Prometheus metric name, but without the colon. See {@link ValidatedString} and {@link PrometheusMetricName} for more information.
@category Prometheus
*/
export type PrometheusMetricNameWithoutColon = typeof type;
export const PrometheusMetricNameWithoutColon = factory;

0 comments on commit b97c4a2

Please sign in to comment.