Skip to content

API specs #13

@contolini

Description

@contolini

We should standardize our function signatures. Right now we're all over the place. Here are some rules I just made up. Feel free to add your own.

  • Methods should receive a single object argument.
    • e.g. cashFlow({income: 100000, expenses: 50000}) and not cashFlow(100000, 50000)
  • Percent values should be represented as integers.
    • e.g. 20% is 20 and not .2
  • Output should be as verbose as possible
    • e.g. interest returns an object with both the interest amount, and the total amount. The user could easily add their principal to the interest to get the total themselves, but it's nice to do it for them.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions