(ast: AST)
| 1986 | | Union<IndexSignatureParameter> |
| 1987 | |
| 1988 | function isIndexSignatureParameterSide(ast: AST): ast is IndexSignatureParameter { |
| 1989 | switch (ast._tag) { |
| 1990 | case "String": |
| 1991 | case "Number": |
| 1992 | case "Symbol": |
| 1993 | case "TemplateLiteral": |
| 1994 | return true |
| 1995 | case "Union": |
| 1996 | return ast.types.every(isIndexSignatureParameterSide) |
| 1997 | default: |
| 1998 | return false |
| 1999 | } |
| 2000 | } |
| 2001 | |
| 2002 | function isIndexSignatureParameter(ast: AST): ast is IndexSignatureParameter { |
| 2003 | return isIndexSignatureParameterSide(ast) && isIndexSignatureParameterSide(toEncoded(ast)) |
no outgoing calls
no test coverage detected