Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
docs(jsdoc): better type usage
Browse files Browse the repository at this point in the history
  • Loading branch information
mrfelton committed May 24, 2020
1 parent c264426 commit a026fdf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions renderer/reducers/activity/selectors.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/**
* @typedef {import('../index').State} State
* @typedef {import('../invoice').DecoratedInvoice} DecoratedInvoice
* @typedef {import('../transaction').DecoratedTransaction} DecoratedTransaction
*/

import { createSelector } from 'reselect'
Expand Down Expand Up @@ -29,15 +31,15 @@ const paymentsSendingSelector = state => paymentSelectors.paymentsSending(state)
* invoicesSelector - Invoice.
*
* @param {State} state Redux state
* @returns {object[]} List of invoices
* @returns {DecoratedInvoice[]} List of invoices
*/
const invoicesSelector = state => invoiceSelectors.invoices(state)

/**
* invoicesSelector - Transactions.
*
* @param {State} state Redux state
* @returns {object[]} List of transactions
* @returns {DecoratedTransaction[]} List of transactions
*/
const transactionsSelector = state => transactionSelectors.transactions(state)

Expand Down

0 comments on commit a026fdf

Please sign in to comment.