类型定义中的括号代表什么?

时间:2017-11-24 15:34:11

标签: typescript typescript-typings

在React的GRAVE: Servlet.service() for servlet [spring] in context with path [] threw exception [Request processing failed; nested exception is org.springframework.orm.jpa.JpaSystemException: error performing isolated work; nested exception is org.hibernate.exception.GenericJDBCException: error performing isolated work] with root cause java.sql.SQLException: database is locked at org.sqlite.core.DB.throwex(DB.java:859) at org.sqlite.core.DB.exec(DB.java:142) at org.sqlite.jdbc3.JDBC3Connection.commit(JDBC3Connection.java:165) at org.hibernate.resource.transaction.backend.jdbc.internal.JdbcIsolationDelegate.d 文件中,列出了以下接口定义。第三行是什么意思? index.d.ts

(props: P & { children?: ReactNode }, context?: any): ReactElement<any> | null;

1 个答案:

答案 0 :(得分:2)

接口描述了一个函数,第一个定义是签名。括号内的那些值是参数,ReactElement<any> | null是返回的类型。