inferred-types 0.50.13 → 0.50.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -39,6 +39,7 @@ export * from "./stripChars";
39
39
  export * from "./retainWhile";
40
40
  export * from "./rightWhitespace";
41
41
  export * from "./retainUntil";
42
+ export * from "./stripWhile";
42
43
  export * from "./phone/index";
43
44
  export * from "./color/index";
44
45
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/runtime/literals/index.ts"],"names":[],"mappings":"AAMA,cAAc,OAAO,CAAC;AACtB,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,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B,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAG7B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC"}
@@ -44,6 +44,7 @@ export * from "./stripChars";
44
44
  export * from "./retainWhile";
45
45
  export * from "./rightWhitespace";
46
46
  export * from "./retainUntil";
47
+ export * from "./stripWhile";
47
48
  export * from "./phone/index";
48
49
  export * from "./color/index";
49
50
  // #endregion auto-indexed files
@@ -0,0 +1,10 @@
1
+ import { StripWhile } from "src/types/index";
2
+ /**
3
+ * **stripWhile**`(content, ...until)`
4
+ *
5
+ * Strips the characters at the start of the string
6
+ * while they match the characters found in `match`
7
+ * parameter.
8
+ */
9
+ export declare const stripWhile: <TContent extends string, TMatch extends readonly string[]>(content: TContent, ...match: TMatch) => StripWhile<TContent, TMatch[number]>;
10
+ //# sourceMappingURL=stripWhile.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stripWhile.d.ts","sourceRoot":"","sources":["../../../src/runtime/literals/stripWhile.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C;;;;;;GAMG;AACH,eAAO,MAAM,UAAU,GACrB,QAAQ,SAAS,MAAM,EACvB,MAAM,SAAS,SAAS,MAAM,EAAE,WACvB,QAAQ,YAAY,MAAM,KAIS,UAAU,CAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,CAChF,CAAA"}
@@ -0,0 +1,13 @@
1
+ import { asChars } from "../type-conversion/index";
2
+ /**
3
+ * **stripWhile**`(content, ...until)`
4
+ *
5
+ * Strips the characters at the start of the string
6
+ * while they match the characters found in `match`
7
+ * parameter.
8
+ */
9
+ export const stripWhile = (content, ...match) => {
10
+ const stopIdx = asChars(content)
11
+ .findIndex(c => !match.includes(c));
12
+ return content.slice(stopIdx);
13
+ };