UNPKG
@tdi2/di-core
Version:
latest (3.3.0)
3.3.0
3.2.0
3.1.2
3.1.1
3.1.0
3.0.0
2.2.0
2.1.0
2.0.0
0.1.1
0.1.0
TypeScript Dependency Injection 2 - Core DI framework
@tdi2/di-core
/
dist
/
examples
/
ComponentInterfaces.d.ts
10 lines
(9 loc)
•
302 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
import
type
{
Inject
,
InjectOptional
}
from
"@tdi2/di-core/markers"
;
import
{
ApiInterface
,
LoggerInterface
}
from
"./shared-types"
;
export
interface
ImportedComponentProps
{
data
:
any
[];
services
: {
api
:
Inject
<
ApiInterface
>;
logger
?:
InjectOptional
<
LoggerInterface
>; }; }