mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-12-12 00:31:11 -05:00
36 lines
642 B
React
36 lines
642 B
React
|
const PropTypes = require('prop-types');
|
||
|
|
||
|
const {
|
||
|
number,
|
||
|
string,
|
||
|
shape
|
||
|
} = PropTypes;
|
||
|
|
||
|
export const projectShape = shape({
|
||
|
id: number,
|
||
|
instructions: string,
|
||
|
title: string,
|
||
|
description: string,
|
||
|
author: shape({
|
||
|
id: number,
|
||
|
username: string
|
||
|
}),
|
||
|
image: string,
|
||
|
history: shape({
|
||
|
created: string,
|
||
|
modified: string,
|
||
|
shared: string
|
||
|
}),
|
||
|
stats: shape({
|
||
|
views: number,
|
||
|
loves: number,
|
||
|
favorites: number,
|
||
|
comments: number,
|
||
|
remixes: number
|
||
|
}),
|
||
|
remix: shape({
|
||
|
parent: number,
|
||
|
root: number
|
||
|
})
|
||
|
});
|