File

src/configuration/entities/mock-data/mock-data.entity.intf.ts

Description

Mock data entity that describes how the mock data should look like when a developer wants to mock its backend data to be fetched via JSON Server

Index

Properties

Indexable

[key: string]: any

Custom additional properties

Properties

profiles
profiles: StarkUser[]
Type : StarkUser[]
Optional

Array of StarkUser objects

import { InjectionToken } from "@angular/core";
import { StarkUser } from "../../../modules/user";

/**
 * {@link https://v12.angular.io/api/core/InjectionToken|InjectionToken} used to provide the {@link StarkMockData}
 */
export const STARK_MOCK_DATA: InjectionToken<StarkMockData> = new InjectionToken<StarkMockData>("STARK_MOCK_DATA");

/**
 * Mock data entity that describes how the mock data should look like when a developer wants to mock its backend data to be fetched via JSON Server
 */
export interface StarkMockData {
	/**
	 * Custom additional properties
	 */
	[key: string]: any;

	/**
	 * Array of `StarkUser` objects
	 */
	profiles?: StarkUser[];
}

results matching ""

    No results matching ""