Skip to content

Instantly share code, notes, and snippets.

@glendaviesnz
glendaviesnz / ngrx_actions.ts
Created February 28, 2017 02:00 — forked from ghetolay/ngrx_actions.ts
Pattern to build actions for ngrx
interface Action<T> {
type: T;
}
interface PayloadAction<T, R> {
readonly type: T;
payload: R;
}
interface ActionFactory<T> {
@glendaviesnz
glendaviesnz / ngrx_actions.ts
Created February 28, 2017 02:00 — forked from ghetolay/ngrx_actions.ts
Pattern to build actions for ngrx
interface Action<T> {
type: T;
}
interface PayloadAction<T, R> {
readonly type: T;
payload: R;
}
interface ActionFactory<T> {
<?php
namespace Davzie\ProductCatalog\Entities;
use Validator;
use Input;
use Illuminate\Support\MessageBag;
use Exception;
use App;
class Base {