Skip to content

Commit

Permalink
fix: Update dependencies. (#191)
Browse files Browse the repository at this point in the history
Co-authored-by: Jan-Hendrik Grundhöfer <jan-hendrik.grundhoefer@thenativeweb.io>
  • Loading branch information
grundhoeferj and Jan-Hendrik Grundhöfer authored Oct 28, 2020
1 parent 60943bb commit ee3a227
Show file tree
Hide file tree
Showing 4 changed files with 260 additions and 528 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ jobs:
npx roboter build
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN_ADMIN }}
GITHUB_TOKEN: ${{ secrets.GH_TOKEN_ADMIN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN_ADMIN }}
run: npx semantic-release
5 changes: 2 additions & 3 deletions lib/defekt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@ import { CustomError } from './CustomError';
import { ErrorConstructors } from './ErrorConstructors';
import humanizeString from 'humanize-string';

const defekt = function <TErrorDefinition extends {
[ key: string ]: { code?: string };
}> (errorDefinitions: TErrorDefinition): ErrorConstructors<TErrorDefinition> {
const defekt = function <TErrorDefinition extends Record<string, { code?: string }>>
(errorDefinitions: TErrorDefinition): ErrorConstructors<TErrorDefinition> {
const errors: Partial<ErrorConstructors<TErrorDefinition>> = {};

/* eslint-disable guard-for-in */
Expand Down
Loading

0 comments on commit ee3a227

Please sign in to comment.