From 0f42c3342443e61dc38222aae68bc57ed8699356 Mon Sep 17 00:00:00 2001 From: Shreyan Jain Date: Mon, 8 Apr 2024 14:17:57 -0700 Subject: [PATCH] @type t() for Infer.Type should be a struct --- lib/infer.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/infer.ex b/lib/infer.ex index 40786d5..0eabaf8 100644 --- a/lib/infer.ex +++ b/lib/infer.ex @@ -12,7 +12,7 @@ defmodule Infer do @type mime_type() :: binary() @type extension() :: binary() @type matcher_fun() :: (binary() -> boolean()) - @type t() :: %{matcher_type: matcher_type(), mime_type: mime_type(), extension: extension(), matcher: matcher_fun()} + @type t() :: %__MODULE__{matcher_type: matcher_type(), mime_type: mime_type(), extension: extension(), matcher: matcher_fun()} end # Load matchers on compilation