diff --git a/src/082-cjs-vs-esm/213-should-i-use-cjs-or-esm.explainer.ts b/src/082-cjs-vs-esm/213-should-i-use-cjs-or-esm.explainer.ts new file mode 100644 index 0000000..a2e44cd --- /dev/null +++ b/src/082-cjs-vs-esm/213-should-i-use-cjs-or-esm.explainer.ts @@ -0,0 +1 @@ +// Should I use CJS or ESM? diff --git a/src/085-the-utils-folder/213-intro-to-the-utils-folder.problem.ts b/src/085-the-utils-folder/214-intro-to-the-utils-folder.problem.ts similarity index 100% rename from src/085-the-utils-folder/213-intro-to-the-utils-folder.problem.ts rename to src/085-the-utils-folder/214-intro-to-the-utils-folder.problem.ts diff --git a/src/085-the-utils-folder/213-intro-to-the-utils-folder.solution.ts b/src/085-the-utils-folder/214-intro-to-the-utils-folder.solution.ts similarity index 100% rename from src/085-the-utils-folder/213-intro-to-the-utils-folder.solution.ts rename to src/085-the-utils-folder/214-intro-to-the-utils-folder.solution.ts diff --git a/src/085-the-utils-folder/214-generic-functions-without-inference.problem.ts b/src/085-the-utils-folder/215-generic-functions-without-inference.problem.ts similarity index 100% rename from src/085-the-utils-folder/214-generic-functions-without-inference.problem.ts rename to src/085-the-utils-folder/215-generic-functions-without-inference.problem.ts diff --git a/src/085-the-utils-folder/214-generic-functions-without-inference.solution.ts b/src/085-the-utils-folder/215-generic-functions-without-inference.solution.ts similarity index 100% rename from src/085-the-utils-folder/214-generic-functions-without-inference.solution.ts rename to src/085-the-utils-folder/215-generic-functions-without-inference.solution.ts diff --git a/src/085-the-utils-folder/215-type-parameter-defaults-in-generic-functions.problem.ts b/src/085-the-utils-folder/216-type-parameter-defaults-in-generic-functions.problem.ts similarity index 100% rename from src/085-the-utils-folder/215-type-parameter-defaults-in-generic-functions.problem.ts rename to src/085-the-utils-folder/216-type-parameter-defaults-in-generic-functions.problem.ts diff --git a/src/085-the-utils-folder/215-type-parameter-defaults-in-generic-functions.solution.ts b/src/085-the-utils-folder/216-type-parameter-defaults-in-generic-functions.solution.ts similarity index 100% rename from src/085-the-utils-folder/215-type-parameter-defaults-in-generic-functions.solution.ts rename to src/085-the-utils-folder/216-type-parameter-defaults-in-generic-functions.solution.ts diff --git a/src/085-the-utils-folder/216-type-parameter-constraints-with-generic-functions.problem.ts b/src/085-the-utils-folder/217-type-parameter-constraints-with-generic-functions.problem.ts similarity index 100% rename from src/085-the-utils-folder/216-type-parameter-constraints-with-generic-functions.problem.ts rename to src/085-the-utils-folder/217-type-parameter-constraints-with-generic-functions.problem.ts diff --git a/src/085-the-utils-folder/216-type-parameter-constraints-with-generic-functions.solution.ts b/src/085-the-utils-folder/217-type-parameter-constraints-with-generic-functions.solution.ts similarity index 100% rename from src/085-the-utils-folder/216-type-parameter-constraints-with-generic-functions.solution.ts rename to src/085-the-utils-folder/217-type-parameter-constraints-with-generic-functions.solution.ts diff --git a/src/085-the-utils-folder/217-generic-functions-with-inference.problem.ts b/src/085-the-utils-folder/218-generic-functions-with-inference.problem.ts similarity index 100% rename from src/085-the-utils-folder/217-generic-functions-with-inference.problem.ts rename to src/085-the-utils-folder/218-generic-functions-with-inference.problem.ts diff --git a/src/085-the-utils-folder/217-generic-functions-with-inference.solution.ts b/src/085-the-utils-folder/218-generic-functions-with-inference.solution.ts similarity index 100% rename from src/085-the-utils-folder/217-generic-functions-with-inference.solution.ts rename to src/085-the-utils-folder/218-generic-functions-with-inference.solution.ts diff --git a/src/085-the-utils-folder/218-as-any-inside-generic-functions.problem.ts b/src/085-the-utils-folder/219-as-any-inside-generic-functions.problem.ts similarity index 100% rename from src/085-the-utils-folder/218-as-any-inside-generic-functions.problem.ts rename to src/085-the-utils-folder/219-as-any-inside-generic-functions.problem.ts diff --git a/src/085-the-utils-folder/218-as-any-inside-generic-functions.solution.ts b/src/085-the-utils-folder/219-as-any-inside-generic-functions.solution.ts similarity index 100% rename from src/085-the-utils-folder/218-as-any-inside-generic-functions.solution.ts rename to src/085-the-utils-folder/219-as-any-inside-generic-functions.solution.ts diff --git a/src/085-the-utils-folder/219-multiple-type-arguments.problem.ts b/src/085-the-utils-folder/220-multiple-type-arguments.problem.ts similarity index 100% rename from src/085-the-utils-folder/219-multiple-type-arguments.problem.ts rename to src/085-the-utils-folder/220-multiple-type-arguments.problem.ts diff --git a/src/085-the-utils-folder/219-multiple-type-arguments.solution.ts b/src/085-the-utils-folder/220-multiple-type-arguments.solution.ts similarity index 100% rename from src/085-the-utils-folder/219-multiple-type-arguments.solution.ts rename to src/085-the-utils-folder/220-multiple-type-arguments.solution.ts diff --git a/src/085-the-utils-folder/220-create-group-by-function.problem.ts b/src/085-the-utils-folder/221-create-group-by-function.problem.ts similarity index 100% rename from src/085-the-utils-folder/220-create-group-by-function.problem.ts rename to src/085-the-utils-folder/221-create-group-by-function.problem.ts diff --git a/src/085-the-utils-folder/220-create-group-by-function.solution.ts b/src/085-the-utils-folder/221-create-group-by-function.solution.ts similarity index 100% rename from src/085-the-utils-folder/220-create-group-by-function.solution.ts rename to src/085-the-utils-folder/221-create-group-by-function.solution.ts diff --git a/src/085-the-utils-folder/221-type-predicates.problem.ts b/src/085-the-utils-folder/222-type-predicates.problem.ts similarity index 100% rename from src/085-the-utils-folder/221-type-predicates.problem.ts rename to src/085-the-utils-folder/222-type-predicates.problem.ts diff --git a/src/085-the-utils-folder/221-type-predicates.solution.ts b/src/085-the-utils-folder/222-type-predicates.solution.ts similarity index 100% rename from src/085-the-utils-folder/221-type-predicates.solution.ts rename to src/085-the-utils-folder/222-type-predicates.solution.ts diff --git a/src/085-the-utils-folder/222-assertion-functions.problem.ts b/src/085-the-utils-folder/223-assertion-functions.problem.ts similarity index 100% rename from src/085-the-utils-folder/222-assertion-functions.problem.ts rename to src/085-the-utils-folder/223-assertion-functions.problem.ts diff --git a/src/085-the-utils-folder/222-assertion-functions.solution.ts b/src/085-the-utils-folder/223-assertion-functions.solution.ts similarity index 100% rename from src/085-the-utils-folder/222-assertion-functions.solution.ts rename to src/085-the-utils-folder/223-assertion-functions.solution.ts diff --git a/src/085-the-utils-folder/223-function-overloads.problem.ts b/src/085-the-utils-folder/224-function-overloads.problem.ts similarity index 100% rename from src/085-the-utils-folder/223-function-overloads.problem.ts rename to src/085-the-utils-folder/224-function-overloads.problem.ts diff --git a/src/085-the-utils-folder/223-function-overloads.solution.ts b/src/085-the-utils-folder/224-function-overloads.solution.ts similarity index 100% rename from src/085-the-utils-folder/223-function-overloads.solution.ts rename to src/085-the-utils-folder/224-function-overloads.solution.ts diff --git a/src/090-the-style-guide/224-hungarian-notation.problem.ts b/src/090-the-style-guide/225-hungarian-notation.problem.ts similarity index 100% rename from src/090-the-style-guide/224-hungarian-notation.problem.ts rename to src/090-the-style-guide/225-hungarian-notation.problem.ts diff --git a/src/090-the-style-guide/224-hungarian-notation.solution.ts b/src/090-the-style-guide/225-hungarian-notation.solution.ts similarity index 100% rename from src/090-the-style-guide/224-hungarian-notation.solution.ts rename to src/090-the-style-guide/225-hungarian-notation.solution.ts diff --git a/src/090-the-style-guide/225-where-to-put-your-types.problem.ts b/src/090-the-style-guide/226-where-to-put-your-types.problem.ts similarity index 100% rename from src/090-the-style-guide/225-where-to-put-your-types.problem.ts rename to src/090-the-style-guide/226-where-to-put-your-types.problem.ts diff --git a/src/090-the-style-guide/225-where-to-put-your-types.solution.ts b/src/090-the-style-guide/226-where-to-put-your-types.solution.ts similarity index 100% rename from src/090-the-style-guide/225-where-to-put-your-types.solution.ts rename to src/090-the-style-guide/226-where-to-put-your-types.solution.ts diff --git a/src/090-the-style-guide/226-colocation-of-types.problem.ts b/src/090-the-style-guide/227-colocation-of-types.problem.ts similarity index 100% rename from src/090-the-style-guide/226-colocation-of-types.problem.ts rename to src/090-the-style-guide/227-colocation-of-types.problem.ts diff --git a/src/090-the-style-guide/226-colocation-of-types.solution.ts b/src/090-the-style-guide/227-colocation-of-types.solution.ts similarity index 100% rename from src/090-the-style-guide/226-colocation-of-types.solution.ts rename to src/090-the-style-guide/227-colocation-of-types.solution.ts diff --git a/src/090-the-style-guide/227-setting-up-eslint.explainer.ts b/src/090-the-style-guide/228-setting-up-eslint.explainer.ts similarity index 100% rename from src/090-the-style-guide/227-setting-up-eslint.explainer.ts rename to src/090-the-style-guide/228-setting-up-eslint.explainer.ts diff --git a/src/090-the-style-guide/228-explicit-any-rule-or-not.problem.ts b/src/090-the-style-guide/229-explicit-any-rule-or-not.problem.ts similarity index 100% rename from src/090-the-style-guide/228-explicit-any-rule-or-not.problem.ts rename to src/090-the-style-guide/229-explicit-any-rule-or-not.problem.ts diff --git a/src/090-the-style-guide/228-explicit-any-rule-or-not.solution.ts b/src/090-the-style-guide/229-explicit-any-rule-or-not.solution.ts similarity index 100% rename from src/090-the-style-guide/228-explicit-any-rule-or-not.solution.ts rename to src/090-the-style-guide/229-explicit-any-rule-or-not.solution.ts diff --git a/src/090-the-style-guide/229-explicit-return-types-or-not.problem.ts b/src/090-the-style-guide/230-explicit-return-types-or-not.problem.ts similarity index 100% rename from src/090-the-style-guide/229-explicit-return-types-or-not.problem.ts rename to src/090-the-style-guide/230-explicit-return-types-or-not.problem.ts diff --git a/src/090-the-style-guide/229-explicit-return-types-or-not.solution.ts b/src/090-the-style-guide/230-explicit-return-types-or-not.solution.ts similarity index 100% rename from src/090-the-style-guide/229-explicit-return-types-or-not.solution.ts rename to src/090-the-style-guide/230-explicit-return-types-or-not.solution.ts diff --git a/src/090-the-style-guide/230-any-vs-ts-ignore-vs-ts-expect-error.problem.ts b/src/090-the-style-guide/231-any-vs-ts-ignore-vs-ts-expect-error.problem.ts similarity index 100% rename from src/090-the-style-guide/230-any-vs-ts-ignore-vs-ts-expect-error.problem.ts rename to src/090-the-style-guide/231-any-vs-ts-ignore-vs-ts-expect-error.problem.ts diff --git a/src/090-the-style-guide/230-any-vs-ts-ignore-vs-ts-expect-error.solution.ts b/src/090-the-style-guide/231-any-vs-ts-ignore-vs-ts-expect-error.solution.ts similarity index 100% rename from src/090-the-style-guide/230-any-vs-ts-ignore-vs-ts-expect-error.solution.ts rename to src/090-the-style-guide/231-any-vs-ts-ignore-vs-ts-expect-error.solution.ts diff --git a/src/090-the-style-guide/231-dont-declare-type-and-value-with-the-same-name.problem.ts b/src/090-the-style-guide/232-dont-declare-type-and-value-with-the-same-name.problem.ts similarity index 100% rename from src/090-the-style-guide/231-dont-declare-type-and-value-with-the-same-name.problem.ts rename to src/090-the-style-guide/232-dont-declare-type-and-value-with-the-same-name.problem.ts diff --git a/src/090-the-style-guide/231-dont-declare-type-and-value-with-the-same-name.solution.ts b/src/090-the-style-guide/232-dont-declare-type-and-value-with-the-same-name.solution.ts similarity index 100% rename from src/090-the-style-guide/231-dont-declare-type-and-value-with-the-same-name.solution.ts rename to src/090-the-style-guide/232-dont-declare-type-and-value-with-the-same-name.solution.ts diff --git a/src/090-the-style-guide/232-types-vs-interfaces.problem.ts b/src/090-the-style-guide/233-types-vs-interfaces.problem.ts similarity index 100% rename from src/090-the-style-guide/232-types-vs-interfaces.problem.ts rename to src/090-the-style-guide/233-types-vs-interfaces.problem.ts diff --git a/src/090-the-style-guide/232-types-vs-interfaces.solution.ts b/src/090-the-style-guide/233-types-vs-interfaces.solution.ts similarity index 100% rename from src/090-the-style-guide/232-types-vs-interfaces.solution.ts rename to src/090-the-style-guide/233-types-vs-interfaces.solution.ts diff --git a/src/090-the-style-guide/233-dont-use-uppercase-function-object-string-boolean-as-types.problem.ts b/src/090-the-style-guide/234-dont-use-uppercase-function-object-string-boolean-as-types.problem.ts similarity index 100% rename from src/090-the-style-guide/233-dont-use-uppercase-function-object-string-boolean-as-types.problem.ts rename to src/090-the-style-guide/234-dont-use-uppercase-function-object-string-boolean-as-types.problem.ts diff --git a/src/090-the-style-guide/233-dont-use-uppercase-function-object-string-boolean-as-types.solution.ts b/src/090-the-style-guide/234-dont-use-uppercase-function-object-string-boolean-as-types.solution.ts similarity index 100% rename from src/090-the-style-guide/233-dont-use-uppercase-function-object-string-boolean-as-types.solution.ts rename to src/090-the-style-guide/234-dont-use-uppercase-function-object-string-boolean-as-types.solution.ts diff --git a/src/090-the-style-guide/234-dont-use-globally-available-types.problem.ts b/src/090-the-style-guide/235-dont-use-globally-available-types.problem.ts similarity index 100% rename from src/090-the-style-guide/234-dont-use-globally-available-types.problem.ts rename to src/090-the-style-guide/235-dont-use-globally-available-types.problem.ts diff --git a/src/090-the-style-guide/234-dont-use-globally-available-types.solution.ts b/src/090-the-style-guide/235-dont-use-globally-available-types.solution.ts similarity index 100% rename from src/090-the-style-guide/234-dont-use-globally-available-types.solution.ts rename to src/090-the-style-guide/235-dont-use-globally-available-types.solution.ts diff --git a/src/090-the-style-guide/235-how-strict-should-you-configure-ts.problem.ts b/src/090-the-style-guide/236-how-strict-should-you-configure-ts.problem.ts similarity index 100% rename from src/090-the-style-guide/235-how-strict-should-you-configure-ts.problem.ts rename to src/090-the-style-guide/236-how-strict-should-you-configure-ts.problem.ts diff --git a/src/090-the-style-guide/235-how-strict-should-you-configure-ts.solution.ts b/src/090-the-style-guide/236-how-strict-should-you-configure-ts.solution.ts similarity index 100% rename from src/090-the-style-guide/235-how-strict-should-you-configure-ts.solution.ts rename to src/090-the-style-guide/236-how-strict-should-you-configure-ts.solution.ts diff --git a/src/090-the-style-guide/236-dont-unnecessarily-widen-types.problem.ts b/src/090-the-style-guide/237-dont-unnecessarily-widen-types.problem.ts similarity index 100% rename from src/090-the-style-guide/236-dont-unnecessarily-widen-types.problem.ts rename to src/090-the-style-guide/237-dont-unnecessarily-widen-types.problem.ts diff --git a/src/090-the-style-guide/236-dont-unnecessarily-widen-types.solution.ts b/src/090-the-style-guide/237-dont-unnecessarily-widen-types.solution.ts similarity index 100% rename from src/090-the-style-guide/236-dont-unnecessarily-widen-types.solution.ts rename to src/090-the-style-guide/237-dont-unnecessarily-widen-types.solution.ts diff --git a/src/095-migrating-from-javascript/237-strict-file-by-file-vs-ramp-up-strictness.problem.ts b/src/095-migrating-from-javascript/238-strict-file-by-file-vs-ramp-up-strictness.problem.ts similarity index 100% rename from src/095-migrating-from-javascript/237-strict-file-by-file-vs-ramp-up-strictness.problem.ts rename to src/095-migrating-from-javascript/238-strict-file-by-file-vs-ramp-up-strictness.problem.ts diff --git a/src/095-migrating-from-javascript/237-strict-file-by-file-vs-ramp-up-strictness.solution.ts b/src/095-migrating-from-javascript/238-strict-file-by-file-vs-ramp-up-strictness.solution.ts similarity index 100% rename from src/095-migrating-from-javascript/237-strict-file-by-file-vs-ramp-up-strictness.solution.ts rename to src/095-migrating-from-javascript/238-strict-file-by-file-vs-ramp-up-strictness.solution.ts diff --git a/src/095-migrating-from-javascript/238-dependencies-first.problem.ts b/src/095-migrating-from-javascript/239-dependencies-first.problem.ts similarity index 100% rename from src/095-migrating-from-javascript/238-dependencies-first.problem.ts rename to src/095-migrating-from-javascript/239-dependencies-first.problem.ts diff --git a/src/095-migrating-from-javascript/238-dependencies-first.solution.ts b/src/095-migrating-from-javascript/239-dependencies-first.solution.ts similarity index 100% rename from src/095-migrating-from-javascript/238-dependencies-first.solution.ts rename to src/095-migrating-from-javascript/239-dependencies-first.solution.ts diff --git a/src/095-migrating-from-javascript/239-typing-third-party-modules.problem.ts b/src/095-migrating-from-javascript/240-typing-third-party-modules.problem.ts similarity index 100% rename from src/095-migrating-from-javascript/239-typing-third-party-modules.problem.ts rename to src/095-migrating-from-javascript/240-typing-third-party-modules.problem.ts diff --git a/src/095-migrating-from-javascript/239-typing-third-party-modules.solution.ts b/src/095-migrating-from-javascript/240-typing-third-party-modules.solution.ts similarity index 100% rename from src/095-migrating-from-javascript/239-typing-third-party-modules.solution.ts rename to src/095-migrating-from-javascript/240-typing-third-party-modules.solution.ts diff --git a/src/095-migrating-from-javascript/240-madge.problem.ts b/src/095-migrating-from-javascript/241-madge.problem.ts similarity index 100% rename from src/095-migrating-from-javascript/240-madge.problem.ts rename to src/095-migrating-from-javascript/241-madge.problem.ts diff --git a/src/095-migrating-from-javascript/240-madge.solution.ts b/src/095-migrating-from-javascript/241-madge.solution.ts similarity index 100% rename from src/095-migrating-from-javascript/240-madge.solution.ts rename to src/095-migrating-from-javascript/241-madge.solution.ts diff --git a/src/095-migrating-from-javascript/241-understanding-the-structure-of-ts-errors.problem.ts b/src/095-migrating-from-javascript/242-understanding-the-structure-of-ts-errors.problem.ts similarity index 100% rename from src/095-migrating-from-javascript/241-understanding-the-structure-of-ts-errors.problem.ts rename to src/095-migrating-from-javascript/242-understanding-the-structure-of-ts-errors.problem.ts diff --git a/src/095-migrating-from-javascript/241-understanding-the-structure-of-ts-errors.solution.ts b/src/095-migrating-from-javascript/242-understanding-the-structure-of-ts-errors.solution.ts similarity index 100% rename from src/095-migrating-from-javascript/241-understanding-the-structure-of-ts-errors.solution.ts rename to src/095-migrating-from-javascript/242-understanding-the-structure-of-ts-errors.solution.ts diff --git a/src/095-migrating-from-javascript/242-experiments-with-jsdoc.problem.ts b/src/095-migrating-from-javascript/243-experiments-with-jsdoc.problem.ts similarity index 100% rename from src/095-migrating-from-javascript/242-experiments-with-jsdoc.problem.ts rename to src/095-migrating-from-javascript/243-experiments-with-jsdoc.problem.ts diff --git a/src/095-migrating-from-javascript/242-experiments-with-jsdoc.solution.ts b/src/095-migrating-from-javascript/243-experiments-with-jsdoc.solution.ts similarity index 100% rename from src/095-migrating-from-javascript/242-experiments-with-jsdoc.solution.ts rename to src/095-migrating-from-javascript/243-experiments-with-jsdoc.solution.ts diff --git a/src/095-migrating-from-javascript/243-jsdoc-cannot-pass-types-to-functions.problem.ts b/src/095-migrating-from-javascript/244-jsdoc-cannot-pass-types-to-functions.problem.ts similarity index 100% rename from src/095-migrating-from-javascript/243-jsdoc-cannot-pass-types-to-functions.problem.ts rename to src/095-migrating-from-javascript/244-jsdoc-cannot-pass-types-to-functions.problem.ts diff --git a/src/095-migrating-from-javascript/243-jsdoc-cannot-pass-types-to-functions.solution.ts b/src/095-migrating-from-javascript/244-jsdoc-cannot-pass-types-to-functions.solution.ts similarity index 100% rename from src/095-migrating-from-javascript/243-jsdoc-cannot-pass-types-to-functions.solution.ts rename to src/095-migrating-from-javascript/244-jsdoc-cannot-pass-types-to-functions.solution.ts