Skip to content

Commit

Permalink
Fikser typescript feil
Browse files Browse the repository at this point in the history
  • Loading branch information
matsbyfl committed Dec 22, 2023
1 parent 6bb6164 commit d58ab8e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions client/src/mocks/handlers/saksbehandling.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
OppgaveStatusType,
SakerFilter,
StegType,
VedtakType,
VedtakPayload,
} from '../../types/types.internal'
import type { StoreHandlersFactory } from '../data'

Expand Down Expand Up @@ -98,7 +98,7 @@ export const saksbehandlingHandlers: StoreHandlersFactory = ({ sakStore, barnebr
return res(ctx.status(200), ctx.json(saksdokumenter))
}
}),
rest.put<VedtakType, { sakId: string }, any>('/api/vedtak-v2/:sakId', async (req, res, ctx) => {
rest.put<VedtakPayload, { sakId: string }, any>('/api/vedtak-v2/:sakId', async (req, res, ctx) => {
const sakId = req.params.sakId
const status = req.body.status

Expand Down
6 changes: 3 additions & 3 deletions client/src/types/types.internal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ export enum VedtaksgrunnlagType {
UTLAANSHISTORIKK = 'UTLAANSHISTORIKK',
}

export interface VedtakType {
export interface VedtakPayload {
sakId: number | string
status: VedtakStatusType
vedtaksgrunnlag: Vedtaksgrunnlag[]
Expand Down Expand Up @@ -348,14 +348,14 @@ export interface HjelpemiddelArtikkel {
hjelpemiddeldatabasenURL?: string
}

/*export interface VedtakType {
export interface VedtakType {
vedtaksdato: string
status: VedtakStatusType
saksbehandlerOid: string
saksbehandlerNavn: string
søknadsId: string
vedtaksgrunnlag?: Vedtaksgrunnlag[]
}*/
}

export interface Enhet {
enhetsnummer: string
Expand Down

0 comments on commit d58ab8e

Please sign in to comment.