Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

next: Allow infered types #61

Open
3 of 10 tasks
elycruz opened this issue Aug 27, 2022 · 0 comments
Open
3 of 10 tasks

next: Allow infered types #61

elycruz opened this issue Aug 27, 2022 · 0 comments
Assignees

Comments

@elycruz
Copy link
Member

elycruz commented Aug 27, 2022

Typescript has a good inference engine (any - Used when some types are left out etc.) which can infer most type information when using the languages primitives (Array, string, number, etc.). When this is the case , and/or we need union types, we should not restrict types we should allow the inference engine to take over - Lessens the amount of "typings" required, speeds up development, and makes function more versatile (in a restricted sense).

We need to remove typescript "typings" where they're not, absolutely, necessary.

Acceptance Criteria

Remove typings where they aren't required (in):

  • './src/boolean/'
    • Tests.
    • Documentation.
  • './src/list/'
    • Tests.
    • Docmentation.
  • './src/object/'
    • Tests.
    • Documentation.
  • @todo
@elycruz elycruz self-assigned this Aug 27, 2022
elycruz added a commit that referenced this issue Aug 27, 2022
…hough modified to absolutely work for strings, arrays, or objects meeting the requirements - type need fine tweaking to match the intersected types' internals ('concat()', '[index: number]: ...', types etc.).

- Progress on updating existing methods to have 'green' tests.
elycruz added a commit that referenced this issue Aug 27, 2022
- Updated TypedArray type's 'concat' method declaration.
elycruz added a commit that referenced this issue Aug 27, 2022
- Cleaned tests for 'permutations' method.
elycruz added a commit that referenced this issue Aug 27, 2022
- Updated some methods to take 'Slice' type.
elycruz added a commit that referenced this issue Aug 28, 2022
…lementaitons and types)and updates to tests towards 'green' tests.
elycruz added a commit that referenced this issue Aug 28, 2022
…' - Makes type more flexible.

- Updated 'group', 'groupBy', 'intercalate', and 'intersperse' types, to allow 'Slice' type.
- Updated tests for, the above, and 'concatMap'.
elycruz added a commit that referenced this issue Aug 28, 2022
elycruz added a commit that referenced this issue Aug 28, 2022
elycruz added a commit that referenced this issue Aug 28, 2022
- Added tests scaffold for 'number/' module.
elycruz added a commit that referenced this issue Aug 28, 2022
- Added tests scaffold for 'number/' module.
elycruz added a commit that referenced this issue Aug 28, 2022
…, etc.) and their associated types - We have general types that can stand in for these (e.g., 'TernaryPred', etc.).

- data/maybe - Removed unused method import.
- tests/number - Updated empty test suite, so it doesn't fail.
elycruz added a commit that referenced this issue Aug 28, 2022
elycruz added a commit that referenced this issue Aug 28, 2022
- Re-generated package-lock.json.
elycruz added a commit that referenced this issue Aug 28, 2022
…tions.

- Simplified implementation in 'length' module, to remove cyclic dependency.
- Disabled tsconfig 'declaration' option in default some tsconfig.json files.
-
Added 'global' property to 'output' configs in 'fjl/rollup.config'.
elycruz added a commit that referenced this issue Aug 28, 2022
…tions.

- Simplified implementation in 'length' module, to remove cyclic dependency.
- Disabled tsconfig 'declaration' option in default some tsconfig.json files.
- Added 'global' property to 'output' configs in 'fjl/rollup.config'.
elycruz added a commit that referenced this issue Aug 28, 2022
…d node versions.

- Began updating the main README file.
- Separate out methods in 'number/' module to separate files.
Updated readmes in 'platform/', and 'types/'.
elycruz added a commit that referenced this issue Sep 2, 2022
…tead of required ones (more ergonomic).

- Renamed 'FunctorMapFn' to 'FunctorMapOp' - so it follows same naming schema as other '*Op' methods.  - Added types to 'FunctorMapOp'.
- Simplified 'maybe' method implementation.
- Renamed some generics.
elycruz added a commit that referenced this issue Sep 2, 2022
- Removed 'packages/fjl/CHANGELOG' file.
elycruz added a commit that referenced this issue Sep 2, 2022
- Updated 'runIoFilters', and 'runFilters' method types, and implementations - 'type' typo existed there impeding tests from passing.
- Updated 'Monad', and 'Maybe' tests.
elycruz added a commit that referenced this issue Sep 12, 2022
elycruz added a commit that referenced this issue Sep 13, 2022
- Removed unrequired todos file.
elycruz added a commit that referenced this issue Sep 13, 2022
elycruz added a commit that referenced this issue Sep 18, 2022
- Added 'fjl-validator-recaptcha' to workspace, and test configs.
elycruz added a commit that referenced this issue Sep 18, 2022
- Renamed '.eslintrc' to '.eslintrc.json'.
- Fixed eslint issue in sources.
elycruz added a commit that referenced this issue Nov 2, 2022
elycruz added a commit that referenced this issue Dec 13, 2022
@elycruz elycruz mentioned this issue Dec 30, 2023
41 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant